Hello! > I've noticed that lots of g++ struct-layout-1.exp tests now fail > on ppc*. The problem is the psABI warning: > the layout of aggregates containing vectors with N-byte alignment > For various targets we are using -Wno-abi (and, in C > struct-layout-1.exp also by default) for this, so the patch just > changes the default for C++ testing too.
const char *dg_options[] = { -"/* { dg-options \"%s-I%s\" } */\n", +"/* { dg-options \"%s-I%s -Wno-abi\" } */\n", "/* { dg-options \"%s-I%s -mno-mmx -Wno-abi\" { target i?86-*-* x86_64-*-* } } */\n", "/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n", "/* { dg-options \"%s-I%s -mno-mmx -fno-common -Wno-abi\" { target i?86-*-darwin* x86_64-*-darwin* i?86-*-mingw32* x86_64-*-mingw32* i?86-*-cygwin* } } */\n", IMO, these should be converted to dg-additional-options. Uros.