https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112605
Bug ID: 112605 Summary: ICE: in gen_reg_rtx, at emit-rtl.cc:1176 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- ******************************************************************************* OS and Platform: $ uname -a: Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ******************************************************************************* gcc version: $ gcc -v Using built-in specs. COLLECT_GCC=/root/gcc_set/202311021000/bin/gcc COLLECT_LTO_WRAPPER=/root/gcc_set/202311021000/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/root/gcc_set/202311021000 --with-gmp=/root/build_essential --with-mpfr=/root/build_essential --with-mpc=/root/build_essential --enable-languages=c,c++ --disable-multilib --with-sanitizer=address,undefined,thread,leak Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20231102 (experimental) (GCC) git version: d508a94167c186b2baacc679896e2809554c0b99 ******************************************************************************* Program: $ cat prog.c int x; int y; void __attribute__((noinline)) f1(void) { x++; } static __attribute__((noinline)) void f3(void) { y++; } void f2() { f1(); f3(); f1(); } ******************************************************************************* Command Lines: $ gcc -c -O2 -mforce-indirect-call -fsplit-stack prog.c during RTL pass: pro_and_epilogue prog.c: In function ‘f3’: prog.c:16:1: internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1176 16 | } | ^ 0x7658e3 gen_reg_rtx(machine_mode) ../../gcc/gcc/emit-rtl.cc:1176 0xbcc1ae copy_to_mode_reg(machine_mode, rtx_def*) ../../gcc/gcc/explow.cc:650 0x14c9538 ix86_expand_call(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, bool) ../../gcc/gcc/config/i386/i386-expand.cc:9707 0x13d7702 ix86_expand_split_stack_prologue() ../../gcc/gcc/config/i386/i386.cc:10486 0x18fe57a gen_split_stack_prologue() ../../gcc/gcc/config/i386/i386.md:18094 0x13bea25 target_gen_split_stack_prologue ../../gcc/gcc/config/i386/i386.md:17849 0xc62e0a make_split_prologue_seq ../../gcc/gcc/function.cc:5785 0xc62e0a make_split_prologue_seq ../../gcc/gcc/function.cc:5778 0xc6301a thread_prologue_and_epilogue_insns() ../../gcc/gcc/function.cc:6039 0xc63752 rest_of_handle_thread_prologue_and_epilogue ../../gcc/gcc/function.cc:6543 0xc63752 execute ../../gcc/gcc/function.cc:6624 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.