https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109137
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to rguent...@suse.de from comment #13) > "easy" out would be to do flag_checking || error_count? Then for release checking we'd emit the ICE replacement message, but yes. Another possibility would be to do some early exit from later LRA stages if seen_error (), just make sure we destroy/free everything we need and then in pass_postreload also don't process stuff further if seen_error () (similarly to how pass_rest_of_compilation returns false from its gate if seen_error ()).