https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114231
Bug ID: 114231 Summary: [14 regression] ICE when building libjxl Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 57606 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57606&action=edit enc_modular.ii.xz Originally reported downstream in Gentoo by tdr. ``` $ g++ -c enc_modular.ii -mrtm -mshstk -march=sapphirerapids -O3 -fno-vect-cost-model during GIMPLE pass: slp /var/tmp/portage/media-libs/libjxl-0.9.1-r1/work/libjxl-0.9.1/lib/jxl/enc_modular.cc: In member function ‘jxl::Status jxl::ModularFrameEncoder::PrepareStreamParams(const jxl::Rect&, const jxl::CompressParams&, int, int, const jxl::ModularStreamId&, bool)’: /var/tmp/portage/media-libs/libjxl-0.9.1-r1/work/libjxl-0.9.1/lib/jxl/enc_modular.cc:1294:8: internal compiler error: in vect_transform_stmt, at tree-vect-stmts.cc:13361 1294 | Status ModularFrameEncoder::PrepareStreamParams(const Rect& rect, | ^~~~~~~~~~~~~~~~~~~ 0x55bdf7edf2b0 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-stmts.cc:13361 0x55bdf99cd64d vect_schedule_slp_node /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-slp.cc:9410 0x55bdf99cd64d vect_schedule_slp_node /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-slp.cc:9203 0x55bdf99ccaa2 vect_schedule_scc /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-slp.cc:9645 0x55bdf96e6382 vect_schedule_slp(vec_info*, vec<_slp_instance*, va_heap, vl_ptr> const&) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-slp.cc:9790 0x55bdf9468b27 vect_slp_region /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-slp.cc:7911 0x55bdf94648c3 vect_slp_bbs /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-slp.cc:8011 0x55bdf94626be vect_slp_function(function*) /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vect-slp.cc:8127 0x55bdf9461e1c execute /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-vectorizer.cc:1533 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/14/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-14.0.9999/work/gcc-14.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/14 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=c,c++,fortran,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 14.0.9999 p, commit c8305c9bdf09abe3e2f89783fe62f2e4049468fa' --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 --disable-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 14.0.1 20240304 (experimental) eae6b63b5b5426f943f58b5ae0bf0a6068ca8ad6 (Gentoo Hardened 14.0.9999 p, commit c8305c9bdf09abe3e2f89783fe62f2e4049468fa) ```