https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #177 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Kazumoto Kojima from comment #175) > (In reply to John Paul Adrian Glaubitz from comment #172) > > ../../../src/libgcc/libgcc2.c:538:1: internal compiler error: Illegal > > instruction > > root@tirpitz:..sh4-linux-gnu/libgcc> > > > > Could this be just an issue of the compiler generating invalid code? > > I assume. A wrong code can make a bad register value which will be used as > an instruction address. If that address is in a data object, for example, > it can cause an illegal instruction error. It could also be a latent bug exposed, like .. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115148 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115948 (just two I could of think right now, perhaps there more of course) As for bootstrapping, afaik Jeff Law has been bootstrapping vanilla sh4 compiler on a regular basis, see also https://gcc.gnu.org/pipermail/gcc-patches/2024-August/660457.html