Tested on x86_64-linux, darwin, i686-darwin, pushed to trunk,
thanks
Iain
--- 8< ---
dg-extra-ld-options are not cummlative so we need to add `-shared` to
the Darwin options to avoid a missing '_main' symbol.
gcc/testsuite/ChangeLog:
* gcc.dg/lto/pr64415_0.c: Add -shared to the Darwin options.
Signed-off-by: Iain Sandoe <[email protected]>
---
gcc/testsuite/gcc.dg/lto/pr64415_0.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/lto/pr64415_0.c
b/gcc/testsuite/gcc.dg/lto/pr64415_0.c
index 11218e07285..54ff8db1169 100644
--- a/gcc/testsuite/gcc.dg/lto/pr64415_0.c
+++ b/gcc/testsuite/gcc.dg/lto/pr64415_0.c
@@ -3,7 +3,7 @@
/* { dg-require-effective-target shared } */
/* { dg-lto-options { { -O -flto -fpic } } } */
/* { dg-extra-ld-options { -shared } } */
-/* { dg-extra-ld-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin*
} } */
+/* { dg-extra-ld-options "-shared -Wl,-undefined,dynamic_lookup" { target
*-*-darwin* } } */
extern void bar(char *, int);
--
2.50.1 (Apple Git-155)