https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111001
Bug ID: 111001 Summary: SH: ICE during RTL pass: sh_treg_combine2 Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: wbx at openadk dot org Target Milestone: --- Created attachment 55731 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55731&action=edit preprocessed source code of rw_bitmaps.c Hi, following compile error occurs for Buildroot targeting sh4-linux-gnu for the e2fsprogs package: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc during RTL pass: sh_treg_combine2 rw_bitmaps.c: In function ‘read_bitmaps_range_start’: rw_bitmaps.c:447:1: internal compiler error: Aborted 447 | } | ^ 0x7fe95c926f8f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x7fe95c975ccc __pthread_kill_implementation ./nptl/pthread_kill.c:44 0x7fe95c926ef1 __GI_raise ../sysdeps/posix/raise.c:26 0x7fe95c911471 __GI_abort ./stdlib/abort.c:79 0x7fe95c912189 __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58 0x7fe95c912244 __libc_start_main_impl ../csu/libc-start.c:381 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. Attached is the preprocessed rw_bitmaps.c file. The problem exist only for -O1/-O2/-O3, using -Os/O0 does not trigger the ICE. And it is an new issue in gcc 13.2.0, it does not happen for 12.3.0. Do you need more information, do not hesitate to ask. best regards Waldemar