]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ipa/107897 - avoid property verification ICE after error
authorRichard Biener <rguenther@suse.de>
Tue, 29 Nov 2022 07:43:55 +0000 (08:43 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 29 Nov 2022 09:25:39 +0000 (10:25 +0100)
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.

gcc/multiple_target.cc

index 77e0f21dd055cb572d06bc409577c47b2926e881..fd88c22b00291c98bb8b534563393c31bb97195c 100644 (file)
@@ -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