Message ID | E791F0A9-4592-4CB4-B625-B29C0D00407C@sandoe.co.uk |
---|---|
State | New |
Headers | show |
Series | [Darwin,X86,testsuite,committed] Fix naked-1.c fail. | expand |
diff --git a/gcc/testsuite/gcc.target/i386/naked-1.c b/gcc/testsuite/gcc.target/i386/naked-1.c index 07bb10edd8..f51773c46a 100644 --- a/gcc/testsuite/gcc.target/i386/naked-1.c +++ b/gcc/testsuite/gcc.target/i386/naked-1.c @@ -1,5 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-O0 -fno-pic" } */ +/* { dg-options "-O0" } */ +/* { dg-additional-options "-fno-pic" { target { ! *-*-darwin* } } } */ +/* { dg-additional-options "-mdynamic-no-pic" { target { *-*-darwin* && ia32 } } } */ /* Verify that __attribute__((naked)) produces a naked function that does not use ret to return but traps at the end. */