[Bug bootstrap/107950] partial LTO linking of libbackend.a: gcc/gcc-rich-location.cc:207: undefined reference to `range_label_for_type_mismatch::get_text(unsigned int) const'

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Jan 14 21:43:16 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107950

--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Thanks for looking into the incremental link of libbackend. I had it in my tree
for a while but never got around implementing correct way to enable it only
during bootstrap since host compiler may not support it. It would be nice to
have it in since it should reduce WPA memory use and also test this code path.

I also think it is the case where partial linking makes the symbol to be pulled
into LTO binary at the initial link time.  It should be optimized away if
linker was not complaining.


More information about the Gcc-bugs mailing list