[Bug target/124778] [15/16 Regression] [SH] ICE in decompose_multiword_subregs, at lower-subreg.cc:1728

glaubitz at physik dot fu-berlin.de gcc-bugzilla@gcc.gnu.org
Sat Apr 4 07:38:55 GMT 2026


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124778

--- Comment #3 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> ---
(In reply to Oleg Endo from comment #2)
> (In reply to John Paul Adrian Glaubitz from comment #0)
> 
> > Please note that both Debian's gcc-15 and gcc-16 packages are LRA-enabled
> > with the patches from PR target/55212, so this might be an LRA-related
> > regression. Will try to test with reload later.
> 
> Does it also fail on vanilla gcc-15 / gcc-16 without LRA modifications?

I actually wanted to rebuild an unpatched GCC first, but then realized I can
just use "-mno-lra" which actually solves the problem:

(unstable-sh4-sbuild)root@esk:/build/reproducible-path/util-linux-2.42# gcc-16
-DHAVE_CONFIG_H -I. -include config.h -I./include
-DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/run\"
-D_PATH_LOCALSTATEDIR=\"/var\" -D_PATH_SYSCONFDIR=\"/etc\"
-D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2
-fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member
-Wdiscarded-qualifiers -Wimplicit-function-declaration -Wmissing-declarations
-Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
-Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith
-Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits
-Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable
-Wunused-parameter -Wunused-result -Wunused-variable -Wvla -Walloca
-Werror=sequence-point -I./libblkid/src -I./libblkid/src -g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/util-linux-2.42=.
-fstack-protector-strong -Wformat -Werror=format-security -c
libblkid/src/superblocks/linux_raid.c  -fPIC -DPIC -o
libblkid/src/superblocks/.libs/la-linux_raid.o -mno-lra
(unstable-sh4-sbuild)root@esk:/build/reproducible-path/util-linux-2.42#

Again, with -mlra:

(unstable-sh4-sbuild)root@esk:/build/reproducible-path/util-linux-2.42# gcc-16
-DHAVE_CONFIG_H -I. -include config.h -I./include
-DLOCALEDIR=\"/usr/share/locale\" -D_PATH_RUNSTATEDIR=\"/run\"
-D_PATH_LOCALSTATEDIR=\"/var\" -D_PATH_SYSCONFDIR=\"/etc\"
-D_PATH_SYSCONFSTATICDIR=\"/usr/lib\" -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2
-fsigned-char -fno-common -Wall -Wextra -Waddress-of-packed-member
-Wdiscarded-qualifiers -Wimplicit-function-declaration -Wmissing-declarations
-Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
-Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith
-Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits
-Wuninitialized -Wunused-but-set-parameter -Wunused-but-set-variable
-Wunused-parameter -Wunused-result -Wunused-variable -Wvla -Walloca
-Werror=sequence-point -I./libblkid/src -I./libblkid/src -g -O2
-Werror=implicit-function-declaration
-ffile-prefix-map=/build/reproducible-path/util-linux-2.42=.
-fstack-protector-strong -Wformat -Werror=format-security -c
libblkid/src/superblocks/linux_raid.c  -fPIC -DPIC -o
libblkid/src/superblocks/.libs/la-linux_raid.o -mlra
during RTL pass: subreg3
libblkid/src/superblocks/linux_raid.c: In function 'probe_raid1':
libblkid/src/superblocks/linux_raid.c:240:1: internal compiler error: in
decompose_multiword_subregs, at lower-subreg.cc:1728
  240 | }
      | ^
0x1ac7d39 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag*, diagnostics::kind)
        ???:0
0x1abeb81 internal_error(char const*, ...)
        ???:0
0x672fcf fancy_abort(char const*, int, char const*)
        ???:0
/usr/libexec/gcc/sh4-linux-gnu/16/cc1 -quiet -I . -I ./include -I
./libblkid/src -I ./libblkid/src -imultiarch sh4-linux-gnu -D HAVE_CONFIG_H -D
LOCALEDIR="/usr/share/locale" -D _PATH_RUNSTATEDIR="/run" -D
_PATH_LOCALSTATEDIR="/var" -D _PATH_SYSCONFDIR="/etc" -D
_PATH_SYSCONFSTATICDIR="/usr/lib" -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64
-D _TIME_BITS=64 -D _FORTIFY_SOURCE=2 -D PIC -include config.h
libblkid/src/superblocks/linux_raid.c -quiet -dumpdir
libblkid/src/superblocks/.libs/ -dumpbase la-linux_raid.c -dumpbase-ext .c
-mlra -g -O2 -Wdate-time -Wall -Wextra -Waddress-of-packed-member
-Wdiscarded-qualifiers -Wimplicit-function-declaration -Wmissing-declarations
-Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs
-Wno-missing-field-initializers -Wold-style-definition -Wpointer-arith
-Wredundant-decls -Wsign-compare -Wstrict-prototypes -Wtype-limits
-Wuninitialized -Wunused-but-set-parameter=3 -Wunused-but-set-variable=3
-Wunused-parameter -Wunused-result -Wunused-variable -Wvla -Walloca
-Werror=sequence-point -Werror=implicit-function-declaration -Wformat=1
-Werror=format-security -fsigned-char -fno-common
-ffile-prefix-map=/build/reproducible-path/util-linux-2.42=.
-fstack-protector-strong -fPIC -o /tmp/cc8jUygQ.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)root@esk:/build/reproducible-path/util-linux-2.42#


More information about the Gcc-bugs mailing list