https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--- Comment #472 from John Paul Adrian Glaubitz <glaubitz at physik dot
fu-berlin.de> ---
FWIW, the M2 backend is failing now with the LRA patches applied:
glaubitz@tirpitz:/srv/glaubitz/m2-test/gcc/build/gcc$
/srv/glaubitz/m2-test/gcc/build/./gcc/cc1gm2 -imultiarch sh4-linux-gnu -iprefix
/srv/glaubitz/m2-test/gcc/build/gcc/../lib/gcc/sh4-unknown-linux-gnu/16.0.1/
-isystem /srv/glaubitz/m2-test/gcc/build/./gcc/include -isystem
/srv/glaubitz/m2-test/gcc/build/./gcc/include-fixed -B
/srv/glaubitz/m2-test/gcc/build/./gcc/ -quiet -dumpbase SYSTEM.mod
-dumpbase-ext .mod -fno-checking -fiso -fdump-system-exports -fm2-pathname=-
-fm2-pathnameI../../gcc/m2/gm2-libs-iso -fm2-pathnameI../../gcc/m2/gm2-libs
-fm2-pathnameI. -fno-scaffold-dynamic -fno-scaffold-static -fno-scaffold-main
-flibs=m2iso,m2cor,m2pim,m2log -o SYSTEM.s -fm2-pathname=-
-fm2-pathnameI../../gcc/m2/gm2-libs-iso -fm2-pathnameI../../gcc/m2/gm2-libs
-fm2-pathnameI. ../../gcc/m2/gm2-libs-iso/SYSTEM.mod
SYSTEM module creates type: LOC
SYSTEM module creates type: ADDRESS
SYSTEM module creates type: BYTE
SYSTEM module creates type: WORD
SYSTEM module creates type: INTEGER8
SYSTEM module creates type: INTEGER16
SYSTEM module creates type: INTEGER32
SYSTEM module creates type: INTEGER64
SYSTEM module creates type: CARDINAL8
SYSTEM module creates type: CARDINAL16
SYSTEM module creates type: CARDINAL32
SYSTEM module creates type: CARDINAL64
SYSTEM module creates type: WORD16
SYSTEM module creates type: WORD32
SYSTEM module creates type: WORD64
SYSTEM module creates type: BITSET8
SYSTEM module creates type: BITSET16
SYSTEM module creates type: BITSET32
SYSTEM module creates type: REAL32
SYSTEM module creates type: REAL64
SYSTEM module creates type: REAL128
SYSTEM module creates type: COMPLEX32
SYSTEM module creates type: COMPLEX64
SYSTEM module creates type: COMPLEX128
SYSTEM module creates type: CSIZE_T
SYSTEM module creates type: CSSIZE_T
SYSTEM module creates type: COFF_T
cc1gm2: internal compiler error: expecting Param or VarParam symbol
0x29a3139b __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x29a31479 __libc_start_main_impl
./csu/libc-start.c:360
/srv/glaubitz/m2-test/gcc/build/./gcc/cc1gm2 -imultiarch sh4-linux-gnu -iprefix
/srv/glaubitz/m2-test/gcc/build/gcc/../lib/gcc/sh4-unknown-linux-gnu/16.0.1/
-isystem /srv/glaubitz/m2-test/gcc/build/./gcc/include -isystem
/srv/glaubitz/m2-test/gcc/build/./gcc/include-fixed -B
/srv/glaubitz/m2-test/gcc/build/./gcc/ -quiet -dumpbase SYSTEM.mod
-dumpbase-ext .mod -fno-checking -fiso -fdump-system-exports -fm2-pathname=-
-fm2-pathnameI../../gcc/m2/gm2-libs-iso -fm2-pathnameI../../gcc/m2/gm2-libs
-fm2-pathnameI. -fno-scaffold-dynamic -fno-scaffold-static -fno-scaffold-main
-flibs=m2iso,m2cor,m2pim,m2log -o SYSTEM.s -fm2-pathname=-
-fm2-pathnameI../../gcc/m2/gm2-libs-iso -fm2-pathnameI../../gcc/m2/gm2-libs
-fm2-pathnameI. ../../gcc/m2/gm2-libs-iso/SYSTEM.mod
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
glaubitz@tirpitz:/srv/glaubitz/m2-test/gcc/build/gcc$
Have not tested with reload yet. Verified on real hardware.