diff mbox

PR 78188 & 71848

Message ID CAGWvnyk0hfDYxPvKLKFjkUO9xdr4mYOXyZPqbn_2f+YW_zRz4w@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn Nov. 4, 2016, 11:19 p.m. UTC
Something in cgraph appears to be relying on COMDAT support if
DECL_ONE_ONLY is available.  This is the cause of the AIX bootstrap
failure due to recent tree-vrp.c change, earlier tree-ssa-sccvn.c
change.  Also a recent C++ front-end change caused new libstdc++
testsuite failures that seems to have the same root cause.

This patch disables the ipa-comdats pass on targets that do not
support COMDAT groups.

Pre-approved by Richi.

PR bootstrap/78188
PR c++/71848
* ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.
diff mbox


Index: ipa-comdats.c
--- ipa-comdats.c       (revision 241862)
+++ ipa-comdats.c       (working copy)
@@ -416,7 +416,7 @@  class pass_ipa_comdats : public ipa_opt_pass_d
 pass_ipa_comdats::gate (function *)
-  return optimize;
+  return HAVE_COMDAT_GROUP && optimize;

 } // anon namespace