From 347b9c46e1653b9bdad22a394005b2c74abae764 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 3 Jun 2006 00:52:54 +0000 Subject: [PATCH] 20000804-1.c: Skip if i?86-darwin. 2006-06-02 Eric Christopher * gcc.c-torture/compile/20000804-1.c: Skip if i?86-darwin. * gcc.target/i386/20020523-1.c: Skip if darwin. * gcc.target/i386/asm-3.c: Ditto. * gcc.target/i386/20011119-1.c: Ditto. * gcc.target/i386/clobbers.c: Remove pic part of test. From-SVN: r114338 --- gcc/testsuite/ChangeLog | 14 +++++++++++--- gcc/testsuite/gcc.c-torture/compile/20000804-1.c | 1 + gcc/testsuite/gcc.target/i386/20011119-1.c | 3 ++- gcc/testsuite/gcc.target/i386/20020523-1.c | 1 + gcc/testsuite/gcc.target/i386/asm-3.c | 1 + gcc/testsuite/gcc.target/i386/clobbers.c | 5 +++++ 6 files changed, 21 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b6f36173028b..da82da671eb3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2006-06-02 Eric Christopher + + * gcc.c-torture/compile/20000804-1.c: Skip if i?86-darwin. + * gcc.target/i386/20020523-1.c: Skip if darwin. + * gcc.target/i386/asm-3.c: Ditto. + * gcc.target/i386/20011119-1.c: Ditto. + * gcc.target/i386/clobbers.c: Remove pic part of test. + 2006-06-02 Steve Ellcey * g++.old-deja/g++.other/init5.C: XFAIL if cxa-atexit is false. @@ -6,7 +14,7 @@ and add other platforms as expected failures. 2006-06-01 Steve Ellcey - + * lib/target-supports.exp (is-effective-target): Add cxa_atexit. (is-effective-target-keyword): Ditto. @@ -66,7 +74,7 @@ 2006-05-30 Mark Mitchell PR c++/27803 - * g++.dg/parse/bitfield1.C: New test. + * g++.dg/parse/bitfield1.C: New test. 2006-05-30 Roger Sayle @@ -186,7 +194,7 @@ PR c++/20103 * g++.dg/ext/complit6.C: New test. * g++.dg/ext/complit3.C: Adjust error markers. - * g++.dg/init/const3.C: New test. + * g++.dg/init/const3.C: New test. 2006-05-25 Richard Guenther diff --git a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c index 0decbc9e0b9e..842a532658ef 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c @@ -2,6 +2,7 @@ statement to force a 'long long' (64-bits) to go in a register. */ /* { dg-do assemble { xfail m6811-*-* m6812-*-* h8300-*-* } } */ /* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && ilp32 } { "-fpic" "-fPIC" } { "" } } */ +/* { dg-skip-if "PIC default" { i?86-*-darwin* } { "*" } { "" } } */ /* { dg-skip-if "No 64-bit registers" { m32c-*-* } { "*" } { "" } } */ /* Copyright (C) 2000, 2003 Free Software Foundation */ diff --git a/gcc/testsuite/gcc.target/i386/20011119-1.c b/gcc/testsuite/gcc.target/i386/20011119-1.c index bbdf104d1c87..4a338570dda7 100644 --- a/gcc/testsuite/gcc.target/i386/20011119-1.c +++ b/gcc/testsuite/gcc.target/i386/20011119-1.c @@ -2,6 +2,7 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target ilp32 } */ /* { dg-skip-if "" { "*-*-*" } { "-fpic" "-fPIC" } { "" } } */ +/* { dg-skip-if "PIC default" { "*-*-darwin*" } { "*" } { "" } } */ /* { dg-options "-O2 -fomit-frame-pointer" } */ static int ustrsize (const char *s); @@ -59,7 +60,7 @@ main() ucwidth = ucwidth_; ugetxc = ugetxc_; usetc = usetc_; - + /* ??? It is impossible to explicitly modify the hard frame pointer. This will run afoul of code in flow.c that declines to mark regs in eliminate_regs in regs_ever_used. Apparently, we have to wait diff --git a/gcc/testsuite/gcc.target/i386/20020523-1.c b/gcc/testsuite/gcc.target/i386/20020523-1.c index 3338612efdc8..df9e0cbb9ed4 100644 --- a/gcc/testsuite/gcc.target/i386/20020523-1.c +++ b/gcc/testsuite/gcc.target/i386/20020523-1.c @@ -3,6 +3,7 @@ patterns were missing earlyclobber. */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */ +/* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target ilp32 } */ /* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */ diff --git a/gcc/testsuite/gcc.target/i386/asm-3.c b/gcc/testsuite/gcc.target/i386/asm-3.c index 43cec25ed2b2..fb194e7995b0 100644 --- a/gcc/testsuite/gcc.target/i386/asm-3.c +++ b/gcc/testsuite/gcc.target/i386/asm-3.c @@ -2,6 +2,7 @@ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2" } */ /* { dg-skip-if "" { ilp32 } { "-fpic" "-fPIC" } { "" } } */ +/* { dg-skip-if "PIC default" { *-*-darwin* } { "*" } { "" } } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/i386/clobbers.c b/gcc/testsuite/gcc.target/i386/clobbers.c index be48ed7e277f..e0b06032133e 100644 --- a/gcc/testsuite/gcc.target/i386/clobbers.c +++ b/gcc/testsuite/gcc.target/i386/clobbers.c @@ -11,9 +11,14 @@ int main () __asm__ ("movl $1,%0\n\txorl %%eax,%%eax" : "=r" (i) : : "eax"); if (i != 1) abort (); + /* On darwin you can't call external functions from non-pic code, + however, clobbering ebx isn't valid in pic code. Instead of + disabling the whole test, just disable the ebx clobbering part. */ +#if !(defined (__MACH__)) __asm__ ("movl $1,%0\n\txorl %%ebx,%%ebx" : "=r" (i) : : "ebx"); if (i != 1) abort (); +#endif __asm__ ("movl $1,%0\n\txorl %%ecx,%%ecx" : "=r" (i) : : "ecx"); if (i != 1) abort ();