https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126431
--- Comment #2 from John Paul Adrian Glaubitz <glaubitz at debian dot org> ---
Here the proof that it works with -mno-lra:
(unstable-sh4-sbuild)glaubitz@esk:~/fontforge/fontforge-20230101~dfsg/build/nox$
gcc-16 -mlra -Dfontforge_EXPORTS
-I"/home/glaubitz/fontforge/fontforge-20230101~dfsg/fontforge"
-I"/home/glaubitz/fontforge/fontforge-20230101~dfsg/inc"
-I"/home/glaubitz/fontforge/fontforge-20230101~dfsg/build/nox/inc" -isystem
/usr/include/glib-2.0 -isystem /usr/lib/sh4-linux-gnu/glib-2.0/include -isystem
/usr/include/freetype2 -isystem /usr/include/libxml2 -isystem
/usr/include/readline -isystem /usr/include/python3.14 -g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/home/glaubitz/fontforge/fontforge-20230101~dfsg=.
-fstack-protector-strong -Wformat -Werror=format-security -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2
-std=gnu99 -fPIC -Wall -Werror=implicit-function-declaration
-Werror=int-conversion -Wno-misleading-indentation -fdiagnostics-color=always
-MD -MT fontforge/CMakeFiles/fontforge.dir/autohint.c.o -MF
fontforge/CMakeFiles/fontforge.dir/autohint.c.o.d -o
fontforge/CMakeFiles/fontforge.dir/autohint.c.o -c
'/home/glaubitz/fontforge/fontforge-20230101~dfsg/fontforge/autohint.c'
during RTL pass: reload
/home/glaubitz/fontforge/fontforge-20230101~dfsg/fontforge/autohint.c: In
function 'MergeDStemInfo':
/home/glaubitz/fontforge/fontforge-20230101~dfsg/fontforge/autohint.c:1835:1:
internal compiler error: in lra_assign, at lra-assigns.cc:1668
1835 | }
| ^
0x1acd331 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag*, diagnostics::kind)
???:0
0x1ac416d internal_error(char const*, ...)
???:0
0x673197 fancy_abort(char const*, int, char const*)
???:0
0xbd96d5 lra_assign(bool&)
???:0
0xbd39d7 lra(_IO_FILE*, int)
???:0
/usr/libexec/gcc/sh4-linux-gnu/16/cc1 -quiet -I
/home/glaubitz/fontforge/fontforge-20230101~dfsg/fontforge -I
/home/glaubitz/fontforge/fontforge-20230101~dfsg/inc -I
/home/glaubitz/fontforge/fontforge-20230101~dfsg/build/nox/inc -imultiarch
sh4-linux-gnu -MD fontforge/CMakeFiles/fontforge.dir/autohint.c.d -MF
fontforge/CMakeFiles/fontforge.dir/autohint.c.o.d -MT
fontforge/CMakeFiles/fontforge.dir/autohint.c.o -D fontforge_EXPORTS -D
_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D _TIME_BITS=64 -D _FORTIFY_SOURCE=2
-isystem /usr/include/glib-2.0 -isystem /usr/lib/sh4-linux-gnu/glib-2.0/include
-isystem /usr/include/freetype2 -isystem /usr/include/libxml2 -isystem
/usr/include/readline -isystem /usr/include/python3.14
/home/glaubitz/fontforge/fontforge-20230101~dfsg/fontforge/autohint.c -quiet
-dumpdir fontforge/CMakeFiles/fontforge.dir/ -dumpbase autohint.c.c
-dumpbase-ext .c -mlra -g -O2 -Werror=implicit-function-declaration -Wformat=1
-Werror=format-security -Wdate-time -Wall -Werror=implicit-function-declaration
-Werror=int-conversion -Wno-misleading-indentation -std=gnu99
-fdiagnostics-color=always
-ffile-prefix-map=/home/glaubitz/fontforge/fontforge-20230101~dfsg=.
-fstack-protector-strong -fPIC -o /tmp/ccfsYCwe.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-16/README.Bugs> for instructions.
(...)
(unstable-sh4-sbuild)glaubitz@esk:~/fontforge/fontforge-20230101~dfsg/build/nox$