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. 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 bool pass_ipa_comdats::gate (function *) { - return optimize; + return HAVE_COMDAT_GROUP && optimize; } } // anon namespace