https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112907
Bug ID: 112907 Summary: [14 regression] ICE when building Botan Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 56828 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56828&action=edit compat_sodium_salsa.ii This started in the last 2-3 days, I think. r14-6096-g4c0dc30099d39eis OK, but r14-6238-gae9e48e5c0acae fails. (Sorry, this machine lacked debugging symbols, which I'll rectify now.) ``` # x86_64-pc-linux-gnu-g++ -fPIC -fvisibility=hidden -fstack-protector -m64 -pthread -std=c++20 -D_REENTRANT -O2 -pipe -march=native -fdiagnostics-color=always -DBOTAN_IS_BEING_BUILT -Wall -Wextra -Wpedantic Wstrict-aliasing -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual -Wzero-as-null-pointer-constant -Wnon-virtual-dtor -Wold-style-cast -Wsuggest-override -Wshadow -Wextra-semi -I build/include -isystem build/include/external -c src/lib/compat/sodium/sodium_salsa.cpp -o build/obj/lib/compat_sodium_salsa.o In file included from src/lib/compat/sodium/sodium_salsa.cpp:9: build/include/botan/internal/loadstor.h: In function ‘constexpr T Botan::load_le(const uint8_t*, std::size_t) [with T = unsigned int]’: build/include/botan/internal/loadstor.h:182:16: internal compiler error: in gimplify_expr, at gimplify.cc:17535 182 | in += off * sizeof(uint32_t); | ^~~~~~~~~~~~~~~~ 0x55bff1745e1c internal_error(char const*, ...) ???:0 0x55bff1745fb4 fancy_abort(char const*, int, char const*) ???:0 0x55bff197abed gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x55bff197ba8f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x55bff197ad0a gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x55bff1978d1c gimplify_stmt(tree_node**, gimple**) ???:0 0x55bff197b9e4 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x55bff197baf9 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0x55bff1978d1c gimplify_stmt(tree_node**, gimple**) ???:0 0x55bff1965634 gimplify_body(tree_node*, bool) ???:0 0x55bff19650f9 gimplify_function_tree(tree_node*) ???:0 0x55bff1963778 cgraph_node::analyze() ???:0 0x55bff1fcd20d symbol_table::finalize_compilation_unit() ???:0 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.0.9999/work/gcc-14.0.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 --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl,df --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 14.0.0 p, commit 185baffd2265d79d52d9c42050ecdf9239195923' --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 --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-host-pie --disable-host-bind-now --enable-default-ssp --with-build-config=bootstrap-lto Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231207 (experimental) ae9e48e5c0acaecf181117bdf3632b6eabf907ec (Gentoo 14.0.0 p, commit 185baffd2265d79d52d9c42050ecdf9239195923) ``` I can reproduce with just 'g++ -c compat_sodium_salsa.ii -march=znver2 -std=c++20'.