On Mon, May 3, 2021 at 9:58 AM Eric Botcazou <botca...@adacore.com> wrote: > > Hi, > > the patch for libiberty itself I posted is not sufficient to link the library > for MinGW platforms in LTO mode, as there is another link failures for stpcpy. > The symbol is both referenced by libiberty's pex-win32.c and provided by > libiberty's stpcpy.c so it needs to have a linkage to be resolved in LTO mode. > > Tested on x86-64/Linux, x86-64/Windows and x86/Windows, OK for the mainline?
OK. Richard. > > 2021-05-03 Eric Botcazou <ebotca...@adacore.com> > > * builtins.c (builtin_with_linkage_p): Return true for stp[n]cpy. > * symtab.c (symtab_node::output_to_lto_symbol_table_p): Tidy up. > > -- > Eric Botcazou