https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117190
--- Comment #6 from Frank Scheiner <frank.scheiner at web dot de> --- (In reply to Jakub Jelinek from comment #2) > Created attachment 59372 [details] > gcc15-pr117190.patch > > Untested fix. Unfortunately applying the patch onto gcc-15-20241020 (01f50ebfd97a7bd17a4cc94c403a8e126986c02c) makes it only worse for my use case: ``` [...] CC init/main.o during RTL pass: dse2 init/main.c: In function 'set_reset_devices': init/main.c:187:1: internal compiler error: Segmentation fault 187 | } | ^ 0x17a1200 internal_error(char const*, ...) /usr/src/gcc/gcc/diagnostic-global-context.cc:517 0xc3918f crash_signal /usr/src/gcc/gcc/toplev.cc:321 0xc14ae0 poly_int_rtx_p(rtx_def const*, poly_int<1u, long>*) /usr/src/gcc/gcc/rtl.h:2418 0xc14ae0 simplify_context::simplify_binary_operation_1(rtx_code, machine_mode, rtx_def*, rtx_def*, rtx_def*, rtx_def*) /usr/src/gcc/gcc/simplify-rtx.cc:2880 0xc1748d simplify_context::simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*) /usr/src/gcc/gcc/simplify-rtx.cc:2682 0xc199fc simplify_binary_operation(rtx_code, machine_mode, rtx_def*, rtx_def*) /usr/src/gcc/gcc/rtl.h:3503 0xc199fc simplify_rtx(rtx_def const*) /usr/src/gcc/gcc/simplify-rtx.cc:8136 0x7ce297 cselib_expand_value_rtx_1 /usr/src/gcc/gcc/cselib.cc:2154 0x7ce468 expand_loc /usr/src/gcc/gcc/cselib.cc:1782 0x7ce180 cselib_expand_value_rtx_1 /usr/src/gcc/gcc/cselib.cc:1945 0x7cfa06 cselib_expand_value_rtx(rtx_def*, bitmap_head*, int) /usr/src/gcc/gcc/cselib.cc:1842 0x1578119 canon_address /usr/src/gcc/gcc/dse.cc:1157 0x15789c0 record_store /usr/src/gcc/gcc/dse.cc:1431 0x157ab3a scan_insn /usr/src/gcc/gcc/dse.cc:2692 0x157ab3a dse_step1 /usr/src/gcc/gcc/dse.cc:2809 0x157ab3a rest_of_handle_dse /usr/src/gcc/gcc/dse.cc:3726 0x157ab3a execute /usr/src/gcc/gcc/dse.cc:3799 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. make[3]: *** [scripts/Makefile.build:229: init/main.o] Error 1 make[2]: *** [scripts/Makefile.build:478: init] Error 2 make[1]: *** [/dev/shm/torvalds-linux/Makefile:1936: .] Error 2 make: *** [Makefile:224: __sub-make] Error 2 ``` ...as it already breaks early on. Haven't yet tested reverting the mentioned commits.