[Bug lto/122430] Call to empty interposable function is optimized away with -flto -fPIC -fsemantic-interposition
xry111 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 26 06:45:23 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122430
--- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
(In reply to Sam James from comment #2)
> (In reply to Xi Ruoyao from comment #0)
> > -flto-partition=max is needed for a minimal reproducer but in practice this
> > breaks libXfont-1.5.4 with CFLAGS="-O2 -flto -fPIC" without any
> > -flto-partition.
>
> (Just out of interest, how did that manifest?)
A software named tinyx needs to interpose RegisterFPEFunctions from libXfont,
but the RegisterFPEFunctions call in FontFileRegisterLocalFpeFunctions is
optimized away.
More information about the Gcc-bugs
mailing list