https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114910
--- Comment #6 from Marc Poulhiès <dkm at gcc dot gnu.org> --- It fails with -Os. It works with -O0, -O1, -O2, -O3 and -Os -fno-var-tracking. Mikael, is it possible that you're not using -Os for target libs?