https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113297
Bug ID: 113297 Summary: during GIMPLE pass: esra ICE: in smallest_mode_for_size, at stor-layout.cc:356 with _BitInt() with -fstack-check=generic Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 57017 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57017&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -fno-tree-fre --param=large-stack-frame=1024 -fstack-check=generic testcase.c during GIMPLE pass: esra testcase.c: In function 'foo': testcase.c:13:1: internal compiler error: in smallest_mode_for_size, at stor-layout.cc:356 13 | } | ^ 0x14f9f6f smallest_mode_for_size(poly_int<1u, unsigned long>, mode_class) /repo/gcc-trunk/gcc/stor-layout.cc:356 0x14fe8b5 smallest_int_mode_for_size(poly_int<1u, unsigned long>) /repo/gcc-trunk/gcc/machmode.h:916 0x14fe8b5 layout_type(tree_node*) /repo/gcc-trunk/gcc/stor-layout.cc:2406 0x1828791 build_nonstandard_integer_type(unsigned long, int) /repo/gcc-trunk/gcc/tree.cc:7131 0x15fd950 analyze_access_subtree /repo/gcc-trunk/gcc/tree-sra.cc:2745 0x16037dd analyze_access_trees /repo/gcc-trunk/gcc/tree-sra.cc:2807 0x16037dd analyze_all_variable_accesses /repo/gcc-trunk/gcc/tree-sra.cc:3695 0x16037dd perform_intra_sra /repo/gcc-trunk/gcc/tree-sra.cc:4952 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-7023-20240109134751-gab6224dfe12-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r14-7023-20240109134751-gab6224dfe12-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20240109 (experimental) (GCC)