re PR ipa/78188 (AIX Bootstrap broken by tree-vrp.c change)
authorDavid Edelsohn <dje.gcc@gmail.com>
Fri, 4 Nov 2016 23:20:50 +0000 (23:20 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Fri, 4 Nov 2016 23:20:50 +0000 (19:20 -0400)
PR bootstrap/78188
PR c++/71848
* ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.

From-SVN: r241863

gcc/ChangeLog
gcc/ipa-comdats.c

index 7e4a50df854fac5f9b393ddea82d45078d9b0381..1992d34a74ffdee3578c82f9c24e042ba5c699bd 100644 (file)
@@ -1,3 +1,9 @@
+2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
+
+       PR bootstrap/78188
+       PR c++/71848
+       * ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
+
 2016-11-04  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/77834
index 6e0f762236602bb88119d19a839c7f9c879eab61..321bc0fc78866d8cbb6fb9d78cec8c638a98d364 100644 (file)
@@ -416,7 +416,7 @@ public:
 bool
 pass_ipa_comdats::gate (function *)
 {
-  return optimize;
+  return HAVE_COMDAT_GROUP && optimize;
 }
 
 } // anon namespace