Commit 1fa153b0 by Iain Sandoe Committed by Iain Sandoe

[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
parent ac4a7836
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
......
/* { 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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment