https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103900
Bug ID: 103900 Summary: ICE: in expand_expr_real_2, at expr.c:9771 with -O -fno-tree-dce -fno-tree-dse Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-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 52115 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52115&action=edit auto-reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -fno-tree-dce -fno-tree-dse testcase.c during RTL pass: expand testcase.c: In function 'foo0': testcase.c:11:1: internal compiler error: in expand_expr_real_2, at expr.c:9771 11 | foo0() { | ^~~~ 0x6c4ecd expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.c:9771 0xe66f8f expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.c:3967 0xe66f8f expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.c:4028 0xe6cd18 expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.c:6069 0xe6eea7 execute /repo/gcc-trunk/gcc/cfgexpand.c:6795 Please submit a full bug report, with preprocessed source if appropriate. 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-r12-6199-20220104114958-g05da96886ef-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.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-r12-6199-20220104114958-g05da96886ef-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20220104 (experimental) (GCC)