[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'
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 16 12:35:32 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107950
--- Comment #8 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Jan Hubicka from comment #7)
> 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.
Feel free to grab my initial patch in c#0 and upstream it. I tried that some
time ago in the following email thread:
https://gcc.gnu.org/pipermail/gcc/2021-May/236096.html
>
> 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.
Optimize away during the partial linking? So you think it's a GCC issue when it
comes to partial linking?
More information about the Gcc-bugs
mailing list