Index: testsuite/gcc.target/i386/20060512-3.c =================================================================== --- testsuite/gcc.target/i386/20060512-3.c (revision 116758) +++ testsuite/gcc.target/i386/20060512-3.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-std=gnu99 -msse2 -mstackrealign" } */ #include __m128i __attribute__ ((__noinline__)) Index: testsuite/gcc.target/i386/memcpy-1.c =================================================================== --- testsuite/gcc.target/i386/memcpy-1.c (revision 116758) +++ testsuite/gcc.target/i386/memcpy-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentiumpro -minline-all-stringops" } */ /* { dg-final { scan-assembler "rep" } } */ /* { dg-final { scan-assembler "movs" } } */ Index: testsuite/gcc.target/i386/asm-1.c =================================================================== --- testsuite/gcc.target/i386/asm-1.c (revision 116758) +++ testsuite/gcc.target/i386/asm-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-m32" } */ register unsigned int EAX asm ("r14"); /* { dg-error "register name" } */ Index: testsuite/gcc.target/i386/20060512-4.c =================================================================== --- testsuite/gcc.target/i386/20060512-4.c (revision 116758) +++ testsuite/gcc.target/i386/20060512-4.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-mstackrealign" } */ int outer_function (int x, int y) Index: testsuite/gcc.target/i386/compress-float-387.c =================================================================== --- testsuite/gcc.target/i386/compress-float-387.c (revision 116758) +++ testsuite/gcc.target/i386/compress-float-387.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86*-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=387" } */ double foo (double x) { return x + 1.75; Index: testsuite/gcc.target/i386/20060512-1.c =================================================================== --- testsuite/gcc.target/i386/20060512-1.c (revision 116758) +++ testsuite/gcc.target/i386/20060512-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-std=gnu99 -msse2" } */ #include __m128i __attribute__ ((__noinline__)) Index: testsuite/gcc.target/i386/compress-float-sse.c =================================================================== --- testsuite/gcc.target/i386/compress-float-sse.c (revision 116758) +++ testsuite/gcc.target/i386/compress-float-sse.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86*-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=sse" } */ double foo (double x) { return x + 1.75; Index: testsuite/gcc.target/i386/20060512-2.c =================================================================== --- testsuite/gcc.target/i386/20060512-2.c (revision 116758) +++ testsuite/gcc.target/i386/20060512-2.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-std=gnu99" } */ int outer_function (int x, int y) Index: testsuite/gcc.target/i386/compress-float-sse-pic.c =================================================================== --- testsuite/gcc.target/i386/compress-float-sse-pic.c (revision 116758) +++ testsuite/gcc.target/i386/compress-float-sse-pic.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86*-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=sse -fpic" } */ double foo (double x) { return x + 1.75; Index: testsuite/gcc.target/i386/stack-prot-kernel.c =================================================================== --- testsuite/gcc.target/i386/stack-prot-kernel.c (revision 116758) +++ testsuite/gcc.target/i386/stack-prot-kernel.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target lp64 } } */ +/* { dg-skip-if "darwin x86_64 is pic" { *-*-darwin* } { "-m64" } { "" } } */ /* { dg-options "-O2 -fstack-protector-all -mcmodel=kernel" } */ void test1 (int x) Index: testsuite/gcc.target/i386/compress-float-387-pic.c =================================================================== --- testsuite/gcc.target/i386/compress-float-387-pic.c (revision 116758) +++ testsuite/gcc.target/i386/compress-float-387-pic.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86*-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O2 -march=pentium4 -mtune=prescott -mfpmath=387 -fpic" } */ double foo (double x) { return x + 1.75; Index: testsuite/gcc.dg/pr26449.c =================================================================== --- testsuite/gcc.dg/pr26449.c (revision 116758) +++ testsuite/gcc.dg/pr26449.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do compile { target i?86-*-* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-O1 -ftree-vectorize -march=pentium4 -std=c99" } */ void matmul_i4 (int bbase_yn, int xcount) @@ -12,4 +13,3 @@ void matmul_i4 (int bbase_yn, int xcount dest_y[x] += abase_n[x] * bbase_yn; } } - Index: testsuite/gcc.dg/attr-ms_struct-2.c =================================================================== --- testsuite/gcc.dg/attr-ms_struct-2.c (revision 116758) +++ testsuite/gcc.dg/attr-ms_struct-2.c (working copy) @@ -1,5 +1,6 @@ /* Test for MS structure sizes. */ -/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } +/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-std=gnu99" } */ extern void abort (); Index: testsuite/gcc.dg/attr-ms_struct-1.c =================================================================== --- testsuite/gcc.dg/attr-ms_struct-1.c (revision 116758) +++ testsuite/gcc.dg/attr-ms_struct-1.c (working copy) @@ -1,5 +1,6 @@ /* Test for MS structure sizes. */ -/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } +/* { dg-do run { target *-*-interix* *-*-mingw* *-*-cygwin* i?86-*-darwin* } } */ +/* { dg-require-effective-target ilp32 } */ /* { dg-options "-std=gnu99" } */ extern void abort (); Index: testsuite/gcc.misc-tests/linkage.exp =================================================================== --- testsuite/gcc.misc-tests/linkage.exp (revision 116758) +++ testsuite/gcc.misc-tests/linkage.exp (working copy) @@ -73,6 +73,13 @@ if [isnative] then { } elseif [ string match "*32-bit*" $file_string ] { set native_cflags "-m32" } + } elseif [istarget "*-*-darwin*"] { + set file_string [exec file "linkage-x.o"] + if [ string match "*64-bit*" $file_string ] { + set native_cflags "-m64" + } elseif [ string match "*32-bit*" $file_string ] { + set native_cflags "-m32" + } } if [file exists "linkage-y.o"] then {