https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93808
--- Comment #38 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> --- (In reply to Oleg Endo from comment #37) > (In reply to John Paul Adrian Glaubitz from comment #32) > > (In reply to John Paul Adrian Glaubitz from comment #31) > > > Ah, I forgot to add -O1 and -fno-cross-jumping to CFLAGS. > > > > > > Are the builtin_traps() optimized out for -O2? > > > > > > I'm building with the correct flags now. > > > > Traps also didn't trigger with -O1 and -fno-cross-jumping. > > Adrian, what happened to this issue in the end? Do you remember? Ruby is still being built with -fno-crossjumping on sh4. Let me check, whether we can drop the flag nowadays with Ruby 3.1 and gcc-13.