tested on x86_64-linux, darwin, i686-darwin, pushed to trunk, thanks,
Iain
--- 8< ---
Darwin's linker does not accept 'fpie' unless on final executables.
gcc/testsuite/ChangeLog:
* gcc.dg/lto/pr113197_0.c: Skip for Darwin.
Signed-off-by: Iain Sandoe <[email protected]>
---
gcc/testsuite/gcc.dg/lto/pr113197_0.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/testsuite/gcc.dg/lto/pr113197_0.c
b/gcc/testsuite/gcc.dg/lto/pr113197_0.c
index 6fd86245d30..2b7a949de05 100644
--- a/gcc/testsuite/gcc.dg/lto/pr113197_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr113197_0.c
@@ -1,5 +1,6 @@
/* { dg-lto-do link } */
/* { dg-require-effective-target pie } */
+/* { dg-skip-if "fpie only allowed on exes" { *-*-darwin* } } */
/* { dg-lto-options { { -O -flto -fpie } } } */
/* { dg-extra-ld-options { -r -nostdlib -flinker-output=nolto-rel } } */
--
2.50.1 (Apple Git-155)