------- Comment #20 from howarth at nitro dot med dot uc dot edu  2008-11-15 
16:01 -------
Okay. The following change allows all of the struct-layout-1 tests in gcc.dg
under i686-apple-darwin9 with current gcc trunk...

Index: gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c
===================================================================
--- gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c      (revision
141886)
+++ gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c      (working copy)
@@ -45,7 +45,8 @@
 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*
powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n",
+"/* { dg-options \"%s-I%s -mno-mmx -fno-common\" { target i?86-*-darwin*
x86_64-*-darwin* } } */\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
141886)
+++ gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c      (working copy)
@@ -45,7 +45,8 @@
 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*
powerpc*-*-darwin* *-*-mingw32* *-*-cygwin* } } */\n",
+"/* { dg-options \"%s-I%s -mno-mmx fno-common\" { target i?86-*-darwin*
x86_64-*-darwin* } } */\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]))

However this change causes a slew of failures in
g++.dg/compat/struct-layout-1....

                === 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
...
FAIL: tmpdir-g++.dg-struct-layout-1/t001 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t001 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t001 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t001 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t002 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t002 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t002 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t002 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t003 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t003 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t003 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t003 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t004 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t004 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t004 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t004 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t005 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t005 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t005 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t005 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t006 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t006 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t006 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t006 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t007 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t007 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t007 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t007 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t008 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t008 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t008 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t008 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t009 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t009 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t009 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t009 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t010 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t010 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t010 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t010 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t011 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t011 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t011 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t011 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t012 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t012 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t012 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t012 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t013 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t013 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t013 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t013 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t014 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t014 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t014 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t014 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t015 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t015 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t015 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t015 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t016 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t016 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t016 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t016 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t017 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t017 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t017 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t017 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t018 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t018 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t018 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t018 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t019 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t019 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t019 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t019 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t020 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t020 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t020 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t020 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t021 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t021 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t021 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t021 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t022 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t022 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t022 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t022 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t023 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t023 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t023 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t023 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t024 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t024 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t024 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t024 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t025 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t025 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t025 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t025 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t026 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t026 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t026 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t026 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t027 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t027 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t027 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t027 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t028 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t028 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t028 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t028 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t029 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t029 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t029 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t029 cp_compat_x_tst.o-cp_compat_y_tst.o
link
FAIL: tmpdir-g++.dg-struct-layout-1/t030 cp_compat_main_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t030 cp_compat_x_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t030 cp_compat_y_tst.o compile
FAIL: tmpdir-g++.dg-struct-layout-1/t030 cp_compat_x_tst.o-cp_compat_y_tst.o
link

                === g++ Summary ===

# of unexpected failures        120
# of unresolved testcases       30
/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

Reply via email to