https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109276
Bug ID: 109276 Summary: ICE: in assign_stack_local_1, at function.cc:429 with -mpreferred-stack-boundary=2 Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: max.aehle at scicomp dot uni-kl.de Target Milestone: --- Created attachment 54745 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54745&action=edit verbose output, preprocessed source, .i and .s file Compiling the attached bug.c with GCC 12.2.0 via gcc -m32 -O0 -c bug.c -mpreferred-stack-boundary=2 prints during RTL pass: split1 bug.c: In function 'fun': bug.c:23:1: internal compiler error: in assign_stack_local_1, at function.cc:429 23 | } | ^ 0x6d3b9b assign_stack_local_1(machine_mode, poly_int<1u, long>, int, int) /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/function.cc:429 0xf81d50 assign_386_stack_local(machine_mode, ix86_stack_slot) /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/config/i386/i386.cc:16558 0x13bdd87 gen_split_65(rtx_insn*, rtx_def**) /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/config/i386/i386.md:5471 0x17d3e0a split_insns(rtx_def*, rtx_insn*) /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/config/i386/i386.md:15646 0x9295fe try_split(rtx_def*, rtx_insn*, int) /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/emit-rtl.cc:3795 0xc01fb1 split_insn /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/recog.cc:3384 0xc072f2 split_all_insns() /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/recog.cc:3488 0xc073e8 execute /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/gcc/recog.cc:4406 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. We have attached: - the stdout/stderr output with the additional flag -v, - the preprocessed source produced with -freport-bug, - the files bug.i and bug.s produced with -save-temps. The GCC 12.2.0 build was configured only with a --prefix option. gcc -v shows Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/ramdisk/aehle/gcc/gcc-install/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /ramdisk/aehle/gcc/gcc-obj/../gcc-12.2.0/configure --prefix=/ramdisk/aehle/gcc/gcc-obj/../gcc-install Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.2.0 (GCC) uname -a says "Linux <hostname> 5.4.0-122-generic #138-Ubuntu SMP Wed Jun 22 15:00:31 UTC 2022 x86_64 GNU/Linux". /proc/cpuinfo shows a list of 96 cores with the model name "AMD EPYC 7F72 24-Core Processor". All of the above commands were executed in a Singularity container based on Debian 11.3. The source file is a minimal example condensed from Valgrind's m_libcbase.c.