https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #174 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- (In reply to Kazumoto Kojima from comment #169) > I'll try running gcc testsuite with the sh-elf cross compiler on old sh-sim. > There may not be much chance, but it might catch the wrong code bug. The results w/wo -mlra are exactly the same on the patched compiler. For example, make check-gcc RUNTESTFLAGS="execute.exp --target_board=sh-sim/-m4" make check-gcc RUNTESTFLAGS="execute.exp --target_board=sh-sim/-m4/-mlra" === gcc Summary === # of expected passes 23910 # of unexpected failures 96 The result for the unpatched trunk compiler with -m4 is same, but with -m4 for the vanilla compiler 14.0.1 20240222 shows # of unexpected failures 93 and 3 new failures on the current master compilers are > FAIL: gcc.c-torture/execute/struct-ret-1.c -O2 execution test > FAIL: gcc.c-torture/execute/struct-ret-1.c -O3 -g execution test > FAIL: gcc.c-torture/execute/struct-ret-1.c -O2 -flto -fno-use-linker-plugin > -flto-partition=none execution test It doesn't look that this issue is the cause of the segfault. This is a bad sign, though. Can the unpatched trunk gcc15 bootstrap with reverting enable -mlra by default patch in c#121 in the first place? I assume that gcc14 can bootstrap successfully with -mno-lra. I'll look the above execution errors into more closely. BTW, the patched (58832, 58833,58883,58905) gcc 14.0.1 20240222 has no above 3 FAILs for gcc.c-torture/execute/struct-ret-1.c and moreover -mlra fixes one more case PASS: gcc.c-torture/execute/struct-ret-1.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test which was failed even with unpatched 14.0.1.