[Debian-lego-team] FYI: GCC 15 appears to generate faulty h8300-hitachi-coff cross-compiler binaries
Nicolas Schodet
nschodet at debian.org
Fri Nov 13 09:30:24 GMT 2026
Hi Matthew,
* Matthew Sheets <ms.github at outlook.com> [2026-11-11 03:38]:
> Update: Of the optimizations enabled by default with `-O2` when using GCC 15.2.0 [1],
> it appears `-ftree-pre` (“Perform partial redundancy elimination (PRE) on trees”) is
> responsible for the faulty executables GCC 15 has been creating when building the
> source code for GCC 3.4.6 [2].
> Thus, instead of having to fall all the way back from `-O2` to `-O1`,
> `-O2 -fno-tree-pre` appears to also be an alternative workaround supporting more
> optimizations.
> This would not seem to be related to GCC bug 125019 [3], as version `15.2.0` is
> listed among the "known to work" versions.
I will give it a try, that’s good to know to have C++ back.
I do think that the problem is in GCC 3.4.6, but it is only revealed
with GCC 15.
Nicolas.
More information about the Debian-lego-team
mailing list