[Debian-lego-team] Bug#1015360: Bug#1015360: binutils-h8300-hms: ftbfs with LTO (link time optimization) enabled
Nicolas Schodet
nico at ni.fr.eu.org
Sat Nov 1 16:15:35 GMT 2025
* Petter Reinholdtsen <pere at hungry.com> [2025-11-01 17:02]:
> [Nicolas Schodet]
> > GCC optimize the comparison, even when the tested symbol does not exist.
> > Is it a known problem?
> I do not know if it is a know problem. My guess is that the compiler
> realize that there is no need for the symbol to calculate the result,
> and just optimize the function address away.
Yes, the question is more: “is it a known autoconf problem where the
test for the existance of a functions fails to detect non-existance when
LTO optimization is enabled?”.
Nicolas.
More information about the Debian-lego-team
mailing list