[Darwin, X86, testsuite] Fix naked-1.c fail.
This fails at m32 because the scan-asm is looking for an absence of "ret". Darwin is generating the correct code for the function but the picbase thunk has a 'ret' insn. Fixed by making the test use -mdynamic-no-pic for m32. gcc/testsuite/ChangeLog: 2019-09-20 Iain Sandoe <iain@sandoe.co.uk> * gcc.target/i386/naked-1.c: Alter options to use non- PIC codegen for m32 Darwin. From-SVN: r276004
This commit is contained in:
parent
ac4a783640
commit
1fa153b0ef
@ -1,3 +1,8 @@
|
||||
2019-09-20 Iain Sandoe <iain@sandoe.co.uk>
|
||||
|
||||
* gcc.target/i386/naked-1.c: Alter options to use non-
|
||||
PIC codegen for m32 Darwin.
|
||||
|
||||
2019-09-20 Tobias Burnus <tobias@codesourcery.com>
|
||||
|
||||
PR fortran/78260
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user