The appended patch XFAILs or adjusts testcases to avoid spurious warnings on AIX.
Bootstrapped on powerpc-ibm-aix7.1.0.0 Thanks, David * gcc.dg/torture/pr59166.c: XFAIL on AIX. * g++.dg/ext/visitibility/anon1.C: XFAIL on AIX. * g++.dg/opt/pr60002.C: XFAIL on AIX. * g++.dg/torture/pr63419.C: Ignore non-standard ABI warning. * g++.dg/ipa/ipa-icf-5.C: Require visibility support. Index: torture/pr59166.c =================================================================== --- torture/pr59166.c (revision 217109) +++ torture/pr59166.c (working copy) @@ -1,5 +1,6 @@ /* PR rtl-optimization/59166 */ /* { dg-additional-options "-fcompare-debug" } */ +/* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */ int a, b, c, f, g; Index: ext/visibility/anon1.C =================================================================== --- ext/visibility/anon1.C (revision 217109) +++ ext/visibility/anon1.C (working copy) @@ -3,6 +3,7 @@ // { dg-do compile } // { dg-final { scan-assembler-not "globl.*_ZN.*1fEv" } } +// { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } namespace { Index: opt/pr60002.C =================================================================== --- opt/pr60002.C (revision 217109) +++ opt/pr60002.C (working copy) @@ -1,6 +1,7 @@ // PR tree-optimization/60002 // { dg-do compile } // { dg-options "-O2 -fcompare-debug -fdeclone-ctor-dtor -fipa-cp-clone" } +// { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } struct A {}; Index: torture/pr63419.C =================================================================== --- torture/pr63419.C (revision 217109) +++ torture/pr63419.C (working copy) @@ -1,5 +1,7 @@ // { dg-do compile } // { dg-additional-options "-Wno-psabi" } +// Ignore warning on some powerpc-linux configurations. +// { dg-prune-output "non-standard ABI extension" } typedef float __m128 __attribute__ ((__vector_size__ (16))); const int a = 0; Index: ipa/ipa-icf-5.C =================================================================== --- ipa/ipa-icf-5.C (revision 217109) +++ ipa/ipa-icf-5.C (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-visibility "" } */ /* { dg-options "-O2 -fdump-ipa-icf" } */ struct test