AIX shared libraries do not allow overriding and interposition of symbols by default, which is used to override operators, such as operator new (and operator delete) in C++. Four libstdc++ testcases rely on this behavior and fail on AIX. Jonathan and I have decided to XFAIL the testcases to reduce the noise in the testsuite output.
With the recent libstdc++ testsuite changes, there now are only four (4) failures in the libstdc++ testsuite on AIX -- all due to one real bug in the C++ front-end for targets with stabs debugging. Thanks, David * testsuite/18_support/50594.cc: XFAIL on AIX. * testsuite/ext/mt_allocator/check_new.cc: Same. * testsuite/ext/pool_allocator/check_new.cc: Same. * testsuite/27_io/ios_base/storage/11584.cc: Same. Index: 18_support/50594.cc =================================================================== --- 18_support/50594.cc (revision 243019) +++ 18_support/50594.cc (working copy) @@ -1,5 +1,6 @@ // { dg-options "-fwhole-program" } // { dg-additional-options "-static-libstdc++" { target *-*-mingw* } } +// { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } } // Copyright (C) 2011-2016 Free Software Foundation, Inc. // Index: ext/mt_allocator/check_new.cc =================================================================== --- ext/mt_allocator/check_new.cc (revision 243019) +++ ext/mt_allocator/check_new.cc (working copy) @@ -1,3 +1,5 @@ +// { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } } + // 2001-11-25 Phil Edwards <p...@gcc.gnu.org> // // Copyright (C) 2001-2016 Free Software Foundation, Inc. Index: ext/pool_allocator/check_new.cc =================================================================== --- ext/pool_allocator/check_new.cc (revision 243019) +++ ext/pool_allocator/check_new.cc (working copy) @@ -1,3 +1,5 @@ +// { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } } + // 2001-11-25 Phil Edwards <p...@gcc.gnu.org> // // Copyright (C) 2001-2016 Free Software Foundation, Inc. Index: 27_io/ios_base/storage/11584.cc =================================================================== --- 27_io/ios_base/storage/11584.cc (revision 243019) +++ 27_io/ios_base/storage/11584.cc (working copy) @@ -1,3 +1,5 @@ +// { dg-xfail-run-if "AIX operator new" { powerpc-ibm-aix* } } + // 2004-01-25 jlqu...@gcc.gnu.org // Copyright (C) 2004-2016 Free Software Foundation, Inc.