https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117104
Bug ID: 117104 Summary: [15 regression] ICE when building python-3.12.7 (prepare_cmp_insn, at optabs.cc:4622) with -O2 -march=x86-64-v4 -fno-vect-cost-model -fwrapv Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- $ gcc -c bytearrayobject.i -O2 -march=x86-64-v4 -fno-vect-cost-model -fwrapv during RTL pass: expand In file included from Objects/stringlib/transmogrify.h:13, from Objects/bytearrayobject.c:1121: Objects/stringlib/clinic/transmogrify.h.h: In function ‘stringlib_center’: Objects/stringlib/clinic/transmogrify.h.h:203:1: internal compiler error: in prepare_cmp_insn, at optabs.cc:4622 0x58bf1d1f88bb internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517 0x58bf1d1d6d40 fancy_abort(char const*, int, char const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic.cc:1533 0x58bf1befade5 prepare_cmp_insn /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/optabs.cc:4622 0x58bf1d7b73cd emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*, machine_mode, int, tree_node*, rtx_def*, profile_probability) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/optabs.cc:4837 0x58bf1d7b15ef do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int, tree_node*, machine_mode, rtx_def*, rtx_code_label*, rtx_code_label*, profile_probability) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dojump.cc:1256 0x58bf1dc876ee do_compare_and_jump /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dojump.cc:1330 0x58bf1d7af27c do_jump_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dojump.cc:242 0x58bf1d7ac213 jumpifnot_1(tree_code, tree_node*, tree_node*, rtx_code_label*, profile_probability) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/dojump.cc:950 0x58bf1d7ac213 expand_gimple_cond /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:2710 0x58bf1d788cda expand_gimple_basic_block /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:6014 0x58bf1d703c66 execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cfgexpand.cc:6900 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ---- Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.9999 p, commit 9a259e1746b11f94c3ccdeacb33bcc9ccfeb3f5f' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241011 (experimental) 3b095ac8477f09cccbc9002dde888bd0ad9a73fb (Gentoo Hardened 15.0.9999 p, commit 9a259e1746b11f94c3ccdeacb33bcc9ccfeb3f5f)