https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107728
--- Comment #3 from Thomas Petazzoni <thomas.petazz...@free-electrons.com> --- Thanks for the super quick feedback. Could you clarify "Move over, the functions are not optimized out at -O2 but rather they don't get pulled in glibc building because another function is referenced." ? For the record, we are able to work around this issue by passing -O1 in CFLAGS_FOR_TARGET/CXXFLAGS_FOR_TARGET when building the first stage gcc.