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
+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. */