https://gcc.gnu.org/g:f535d921b3c6a73753dca16ad5925d3596232ac8
commit r17-3959-gf535d921b3c6a73753dca16ad5925d3596232ac8 Author: Iain Sandoe <[email protected]> Date: Sat Sep 5 16:15:13 2026 +0100 testsuite, Darwin: Add -shared option to an LTO test. 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]> Diff: --- 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 11218e072859..54ff8db11699 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);
