https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112116
Oleg Endo <olegendo at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2024-09-25 --- Comment #1 from Oleg Endo <olegendo at gcc dot gnu.org> --- This is probably the same issue as PR 112115. I haven't checked the details, but the eventual ICE looks the same. Compiling the reproducer (lcd.i) with sh-elf-gcc -c -std=c2x -O2 -ml -m4-single -ffast-math -mfsrra -mfsca -matomic-model=soft-imask -ftls-model=local-exec -mlra -fomit-frame-pointer -fno-builtin on current gcc15 master branch fails with internal compiler error: maximum number of generated reload insns per insn achieved (90) 0x1c7ed6e internal_error(char const*, ...) ../../gcc/gcc/diagnostic-global-context.cc:517 0xd910e7 lra_constraints(bool) ../../gcc/gcc/lra-constraints.cc:5404 0xd7abc2 lra(_IO_FILE*, int) ../../gcc/gcc/lra.cc:2445 0xd30de7 do_reload ../../gcc/gcc/ira.cc:5976 0xd30de7 execute ../../gcc/gcc/ira.cc:6164 The issue goes away when using devel/sh-lra branch.