[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #24 from janis at gcc dot gnu dot org 2008-11-17 19:41 --- Subject: Bug 38099 Author: janis Date: Mon Nov 17 19:39:54 2008 New Revision: 141948 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=141948 Log: 2008-11-14 Jack Howarth [EMAIL PROTECTED] PR testsuite/38099 * gcc.dg/compat/struct-layout-1_generate.c: Also use -no-mmx on i?86/x86_64 darwin. * g++.dg/compat/struct-layout-1_generate.c: Same. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/compat/struct-layout-1_generate.c trunk/gcc/testsuite/gcc.dg/compat/struct-layout-1_generate.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #25 from janis at gcc dot gnu dot org 2008-11-17 20:23 --- Fixed by Jack's patch. -- janis at gcc dot gnu dot org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #19 from ubizjak at gmail dot com 2008-11-15 10:59 --- (In reply to comment #17) Current gcc trunk, r141877, still fails... Please read Comment #13 why. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- 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:
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #21 from howarth at nitro dot med dot uc dot edu 2008-11-15 16:05 --- Argh. My mistake. The patch should be (without typo)... 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])) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #22 from howarth at nitro dot med dot uc dot edu 2008-11-15 16:16 --- Revised patch submitted to gcc-patches... http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00714.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #23 from howarth at nitro dot med dot uc dot edu 2008-11-15 22:48 --- Results with revised patch posted at http://gcc.gnu.org/ml/gcc-testresults/2008-11/msg01311.html. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #13 from ubizjak at gmail dot com 2008-11-14 09:00 --- Oh, I see the problem. We generate: /* { dg-options -mno-mmx { target i?86-*-* x86_64-*-* } } */ /* { dg-options -fno-common { target ... *-*-darwin *-*-mingw32* *-*-cygwin* } } */ However, x86 darwin, mingw32 and cygwin* matches both lines. Since dg-options don't concatenate, latest match simply overwrites all previous matches. So, these targets simply overwrite -mno-mmx option. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #14 from ubizjak at gmail dot com 2008-11-14 09:49 --- The problem from Comment #9 is now fixed in mainline. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #15 from howarth at nitro dot med dot uc dot edu 2008-11-14 14:22 --- Uros, I'll retry the testcase tonight with your committed changes. http://gcc.gnu.org/ml/gcc-cvs/2008-11/msg00353.html I do recall that I tried... * { dg-options -mno-mmx { target i?86-*-* x86_64-*-* } } */ /* { dg-options -fno-common -mno-mmx { target ... *-*-darwin *-*-mingw32* *-*-cygwin* } } */ and that causes many more tests in struct-layout-1 to fail. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #16 from ubizjak at gmail dot com 2008-11-14 14:46 --- (In reply to comment #15) I do recall that I tried... * { dg-options -mno-mmx { target i?86-*-* x86_64-*-* } } */ /* { dg-options -fno-common -mno-mmx { target ... *-*-darwin *-*-mingw32* *-*-cygwin* } } */ and that causes many more tests in struct-layout-1 to fail. This should work now. You have to remove inclusion of mmintrin.h and xmmintrin.h for -mno-mmx, otherwise you will get the same problem as shown in Comment #9 on targets where -msse2 is the default (this includes x86 darwin). Fortunatelly, this is pure testsuite problem, see Comment #13. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #17 from howarth at nitro dot med dot uc dot edu 2008-11-15 03:13 --- Current gcc trunk, r141877, still fails... Running /sw/src/fink.build/gcc44-4.3.999-20081114/gcc-4.4-20081114/gcc/testsuite/gcc.dg/compat/struct-layout-1.exp ... FAIL: tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute on i686-apple-darwin9. I will update the assembly files shortly. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- 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 passes140 /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 passes150 /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
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #1 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:34 --- The offending test line in gcc.dg-struct-layout-1/t027_test.h is... T(2601,v1di a;,N(2601,a)) which produces an Abort when tmpdir-gcc-dg-struct-layout-1-t027-01.exe is executed. I am attaching the preprocessed source and assembly created from... /sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/ -I/sw/src/fink.build/gcc44 -4.3.999-20081112/gcc-4.4-20081112/gcc/testsuite/gcc.dg/compat -fno-common -DSKIP_DECIMAL_FLOAT --save-temps -c -o c_compat_main_tst.o /sw/src/fink.build/ gcc44-4.3.999-20081112/darwin_objdir/gcc/testsuite/gcc/gcc.dg-struct-layout-1/t027_main.c /sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/ -w -I/sw/src/fink.build/gc c44-4.3.999-20081112/gcc-4.4-20081112/gcc/testsuite/gcc.dg/compat -fno-common -DSKIP_DECIMAL_FLOAT --save-temps -c -o c_compat_x_tst.o /sw/src/fink.build/ gcc44-4.3.999-20081112/darwin_objdir/gcc/testsuite/gcc/gcc.dg-struct-layout-1//t027_x.c /sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/ -w -I/sw/src/fink.build/gc c44-4.3.999-20081112/gcc-4.4-20081112/gcc/testsuite/gcc.dg/compat -fno-common -DSKIP_DECIMAL_FLOAT --save-temps -c -o c_compat_y_tst.o /sw/src/fink.build/ gcc44-4.3.999-20081112/darwin_objdir/gcc/testsuite/gcc/gcc.dg-struct-layout-1//t027_y.c /sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/xgcc -B/sw/src/fink.build/gcc44-4.3.999-20081112/darwin_objdir/gcc/ c_compat_main_tst.o c_comp at_x_tst.o c_compat_y_tst.o -I/sw/src/fink.build/gcc44-4.3.999-20081112/gcc-4.4-20081112/gcc/testsuite/gcc.dg/compat -fno-common -lm -o tmpdir-gcc-dg-stru ct-layout-1-t027-01.exe -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #2 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:36 --- Created an attachment (id=16669) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16669action=view) preprocessed source for t027_main.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #3 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:37 --- Created an attachment (id=16670) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16670action=view) assembly file for t027_main.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #4 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:38 --- Created an attachment (id=16671) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16671action=view) preprocessed source for t027_x.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #5 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:39 --- Created an attachment (id=16672) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16672action=view) assembly file for t027_x.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #6 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:39 --- Created an attachment (id=16673) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16673action=view) preprocessed source for t027_y.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #7 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:40 --- Created an attachment (id=16674) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16674action=view) assembly file for t027_y.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #8 from howarth at nitro dot med dot uc dot edu 2008-11-14 01:44 --- Let me know if I need to provide anything else to debug this. Again, this test case passes completely if I delete the second line of t027_test.h. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #9 from hjl dot tools at gmail dot com 2008-11-14 03:45 --- This patch: http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00593.html caused: Running target unix FAIL: tmpdir-gcc.dg-struct-layout-1/t001 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t001 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t001 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t001 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t001 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t002 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t002 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t002 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t002 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t002 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t003 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t003 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t003 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t003 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t003 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t004 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t004 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t004 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t004 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t004 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t005 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t005 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t005 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t005 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t005 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t006 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t006 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t006 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t006 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t006 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t007 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t007 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t007 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t007 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t007 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t008 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t008 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t008 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t008 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t008 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t009 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t009 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t009 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t009 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t009 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t010 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t010 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t010 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t010 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t010 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t011 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t011 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t011 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t011 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t011 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t012 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t012 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t012 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t012 c_compat_x_tst.o-c_compat_y_tst.o link UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t012 c_compat_x_tst.o-c_compat_y_tst.o execute FAIL: tmpdir-gcc.dg-struct-layout-1/t013 c_compat_main_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t013 c_compat_x_tst.o compile FAIL: tmpdir-gcc.dg-struct-layout-1/t013 c_compat_y_tst.o compile UNRESOLVED: tmpdir-gcc.dg-struct-layout-1/t013
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #10 from howarth at nitro dot med dot uc dot edu 2008-11-14 04:08 --- The failure on linux is different from that on darwin (which predated the patch cited in comment 9). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #11 from ubizjak at gmail dot com 2008-11-14 07:16 --- (In reply to comment #9) This patch: http://gcc.gnu.org/ml/gcc-patches/2008-11/msg00593.html Oh, I forgot to manually merge struct-layout-1.h part. Fill fix ASAP. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099
[Bug testsuite/38099] tmpdir-gcc.dg-struct-layout-1/t027 c_compat_x_tst.o-c_compat_y_tst.o execute failure
--- Comment #12 from ubizjak at gmail dot com 2008-11-14 07:40 --- (In reply to comment #8) Let me know if I need to provide anything else to debug this. Again, this test case passes completely if I delete the second line of t027_test.h. The problem is, that %mm0 register is accessed in check2601(), as can be seen from t027_y.s assembler dump. This access blocks stack registers in check2601va(), so the check fails at this point. My patch disables all access to MMX registers, so V1DImode should be handled by generic moves. However, IIRC darwin doesn't use MMX registers to pass function args/return values. From t027_y.s dump that you provided, it is evident that check2601() returns its structure with only v1di member in %mm0. Is this OK? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38099