[Bug lto/114337] LTO symbol table doesn't include builtin functions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114337 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Comment #5 from Alexander Monakov --- Gold handles such rescanning correctly. BFD ld regressed in 2.27, this bugreport contains references to previous discussions about rescanning: https://sourceware.org/bugzilla/show_bug.cgi?id=23935 (in the above bug there's a patch for ld.bfd that seemingly went nowhere)
[Bug lto/114337] LTO symbol table doesn't include builtin functions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114337 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |MOVED --- Comment #4 from H.J. Lu --- Will fix it in linker.
[Bug lto/114337] LTO symbol table doesn't include builtin functions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114337 --- Comment #3 from Richard Biener --- The linker needs to re-scan for new references to libc and libgcc functions anyway. For example a structure copy might be expanded as memcpy. We probably don't introduce new calls to memcpy so maybe for a subset of builtins that are never expanded inline or those that are never automatically generated by the compiler we can put them into the symbol table. Note we can introduce calls to things like stpcpy as well, so it's a bit non-obvious how to classify builtins here. Keying on just whether the decl is built-in is probably too coarse. We could simply include all built-ins in the symbol table. Honza?
[Bug lto/114337] LTO symbol table doesn't include builtin functions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114337 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Without -ffat-lto-objects, the compiler doesn't really know if the builtins will be expanded inline and not require any symbol from other objects, or if they will need some library function (and which exact one).
[Bug lto/114337] LTO symbol table doesn't include builtin functions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114337 --- Comment #1 from H.J. Lu --- Maybe linker can deal with it.