https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63998
Dominique d'Humieres <dominiq at lps dot ens.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iains at gcc dot gnu.org --- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > Maybe the testcase misses { dg-require-weak "" }? Not sure if that works for > lto.exp though - can you check? If so, it would probably need // { dg-additional-options "-Wl,-undefined,dynamic_lookup" { target *-*-darwin* } } // { dg-additional-options "-Wl,-flat_namespace" { target *-*-darwin[89]* } } (see gcc.dg/attr-weakref-1.c). Untested so far.