https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100626
Bug ID: 100626 Summary: ICE Segmentation fault (during RTL pass: split1) Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. I don't know if there is a dup of this. I have searched but failed. $cat small.c #include <stdint.h> int uc_4, i_5, us_7; void fn1() { int li_18; int64_t *ptr_43 = &li_18; for (; us_7;) { fn2(); *ptr_43 ^= uc_4; } i_5 = li_18; } $gcc -w -O1 -m32 small.c during RTL pass: split1 small.c: In function ‘fn1’: small.c:11:1: internal compiler error: Segmentation fault 11 | } | ^ 0xb2bebf crash_signal ../../gcc/toplev.c:327 0xe885ca ix86_fixup_binary_operands(rtx_code, machine_mode, rtx_def**) ../../gcc/config/i386/i386-expand.c:900 0xe8877b ix86_expand_binary_operator(rtx_code, machine_mode, rtx_def**) ../../gcc/config/i386/i386-expand.c:943 0x11a016e gen_split_216(rtx_insn*, rtx_def**) ../../gcc/config/i386/i386.md:9714 0x137d6a2 split_insns(rtx_def*, rtx_insn*) ../../gcc/config/i386/i386.md:14112 0x808ffe try_split(rtx_def*, rtx_insn*, int) ../../gcc/emit-rtl.c:3834 0xaa0f51 split_insn ../../gcc/recog.c:3363 0xaa63e7 split_all_insns() ../../gcc/recog.c:3467 0xaa6478 execute ../../gcc/recog.c:4385 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/users/htu42656/compilers/gcc-11.1.0/build/libexec/gcc/x86_64-pc-linux-gnu/11.1.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../configure --prefix=/users/htu42656/compilers/gcc-11.1.0/build/ --enable-bootstrap --enable-checking=release --enable-languages=c,c++ --enable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.1.0 (GCC) Thanks, Haoxin