------- Comment #18 from howarth at nitro dot med dot uc dot edu 2008-11-15 06:45 ------- I just discovered that the failure of tmpdir-gcc.dg-struct-layout-1/t027 on i686-apple-darwin9 can be eliminated by removing the -fno-common flag for this test case. With the changes...
Index: gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c =================================================================== --- gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c (revision 141878) +++ gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c (working copy) @@ -45,7 +45,7 @@ const char *dg_options[] = { "/* { dg-options \"%s-I%s\" } */\n", "/* { dg-options \"%s-I%s -mno-mmx\" { target i?86-*-* x86_64-*-* } } */\n", -"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* *-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n", +"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* *-*-mingw32* *-*-cygwin* } } */\n", "/* { dg-options \"%s-I%s -mno-base-addresses\" { target mmix-*-* } } */\n", "/* { dg-options \"%s-I%s -mlongcalls -mtext-section-literals\" { target xtensa*-*-* } } */\n" #define NDG_OPTIONS (sizeof (dg_options) / sizeof (dg_options[0])) Index: gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c =================================================================== --- gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c (revision 141878) +++ gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c (working copy) @@ -45,7 +45,7 @@ const char *dg_options[] = { "/* { dg-options \"%s-I%s\" } */\n", "/* { dg-options \"%s-I%s -mno-mmx\" { target i?86-*-* x86_64-*-* } } */\n", -"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* *-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n", +"/* { dg-options \"%s-I%s -fno-common\" { target hppa*-*-hpux* *-*-mingw32* *-*-cygwin* } } */\n", "/* { dg-options \"%s-I%s -mno-base-addresses\" { target mmix-*-* } } */\n", "/* { dg-options \"%s-I%s -mlongcalls -mtext-section-literals\" { target xtensa*-*-* } } */\n" #define NDG_OPTIONS (sizeof (dg_options) / sizeof (dg_options[0])) I get... === gcc tests === Schedule of variations: unix Running target unix Using /sw/share/dejagnu/baseboards/unix.exp as board description file for target. Using /sw/share/dejagnu/config/unix.exp as generic interface file for target. Using /sw/src/fink.build/gcc44-4.3.999-20081114/gcc-4.4-20081114/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. Running /sw/src/fink.build/gcc44-4.3.999-20081114/gcc-4.4-20081114/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp ... === gcc Summary === # of expected passes 140 /sw/src/fink.build/gcc44-4.3.999-20081114/darwin_objdir/gcc/xgcc version 4.4.0 20081114 (experimental) (GCC) and Test Run By root on Sat Nov 15 01:24:18 2008 Native configuration is i686-apple-darwin9 === g++ tests === Schedule of variations: unix Running target unix Using /sw/share/dejagnu/baseboards/unix.exp as board description file for target. Using /sw/share/dejagnu/config/unix.exp as generic interface file for target. Using /sw/src/fink.build/gcc44-4.3.999-20081114/gcc-4.4-20081114/gcc/testsuite/config/default.exp as tool-and-target-specific interface file. Running /sw/src/fink.build/gcc44-4.3.999-20081114/gcc-4.4-20081114/gcc/testsuite/g++.dg/compat/struct-layout-1.exp ... === g++ Summary === # of expected passes 150 /sw/src/fink.build/gcc44-4.3.999-20081114/darwin_objdir/gcc/testsuite/g++/../../g++ version 4.4.0 20081114 (experimental) (GCC) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099