From: Richard Biener Date: Tue, 29 Nov 2022 07:43:55 +0000 (+0100) Subject: ipa/107897 - avoid property verification ICE after error X-Git-Tag: basepoints/gcc-14~2823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5894a8179687b7028d093584102d204af422cfd3;p=thirdparty%2Fgcc.git ipa/107897 - avoid property verification ICE after error The target clone pass is the only small IPA pass that doesn't disable itself after errors but has properties whose verification can fail because we cut off build SSA passes after errors. PR ipa/107897 * multiple_target.cc (pass_target_clone::gate): Disable after errors. --- diff --git a/gcc/multiple_target.cc b/gcc/multiple_target.cc index 77e0f21dd055..fd88c22b0029 100644 --- a/gcc/multiple_target.cc +++ b/gcc/multiple_target.cc @@ -539,7 +539,8 @@ public: bool pass_target_clone::gate (function *) { - return true; + /* If there were any errors avoid pass property verification errors. */ + return !seen_error (); } } // anon namespace