https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111892
Bug ID: 111892 Summary: [SH] [13 Regression] internal compiler error: Illegal instruction when building e2fsprogs Product: gcc Version: 13.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: glaubitz at physik dot fu-berlin.de CC: olegendo at gcc dot gnu.org, ysato at users dot sourceforge.jp Target Milestone: --- Target: sh-*-*-* Created attachment 56156 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56156&action=edit Preprocessed source from building rw_bitmaps.c with gcc-13 Since gcc-13, there is a regression in the SH backend which results in an internal compiler error with the error message "Illegal instruction": root@tirpitz:..lib/ext2fs> gcc-13 -I. -I../../lib -I../../../../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=$(pwd)=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -pthread -DHAVE_CONFIG_H -c ../../../../lib/ext2fs/rw_bitmaps.c -o rw_bitmaps.o terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc during RTL pass: sh_treg_combine2 ../../../../lib/ext2fs/rw_bitmaps.c: In function ‘read_bitmaps_range_start’: ../../../../lib/ext2fs/rw_bitmaps.c:447:1: internal compiler error: Illegal instruction 447 | } | ^ 0x29a738e0 __GI_abort ./stdlib/abort.c:107 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-13/README.Bugs> for instructions. root@tirpitz:..lib/ext2fs> gcc-12 works fine: root@tirpitz:..lib/ext2fs> gcc-12 -I. -I../../lib -I../../../../lib -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=$(pwd)=. -specs=/usr/share/dpkg/pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -pthread -DHAVE_CONFIG_H -c ../../../../lib/ext2fs/rw_bitmaps.c -o rw_bitmaps.o root@tirpitz:..lib/ext2fs> Attaching the pre-processed source generated with -save-temps.