https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105025
Bug ID: 105025 Summary: ICE: in gimplify_expr, at gimplify.cc:15863 with _Fract Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: mips64el-unknown-linux-gnuabi64 Created attachment 52666 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52666&action=edit reduced testcase Compiler output: $ mips64el-unknown-linux-gnuabi64-gcc testcase.c testcase.c: In function 'foo': testcase.c:6:11: internal compiler error: in gimplify_expr, at gimplify.cc:15863 6 | r >= (0 && r); | ^~ 0x651f4e gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15863 0xc1cda6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15833 0xc2bfc6 gimplify_cond_expr /repo/gcc-trunk/gcc/gimplify.cc:4404 0xc1d909 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15013 0xc20b46 gimplify_stmt(tree_node**, gimple**) /repo/gcc-trunk/gcc/gimplify.cc:7109 0xc1e87b gimplify_statement_list /repo/gcc-trunk/gcc/gimplify.cc:2019 0xc1e87b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15501 0xc20b46 gimplify_stmt(tree_node**, gimple**) /repo/gcc-trunk/gcc/gimplify.cc:7109 0xc2c5f5 gimplify_cond_expr /repo/gcc-trunk/gcc/gimplify.cc:4393 0xc1d909 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15013 0xc20b46 gimplify_stmt(tree_node**, gimple**) /repo/gcc-trunk/gcc/gimplify.cc:7109 0xc2c4a6 gimplify_cond_expr /repo/gcc-trunk/gcc/gimplify.cc:4364 0xc1d909 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15013 0xc1f5cc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15824 0xc1cddf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15835 0xc20b46 gimplify_stmt(tree_node**, gimple**) /repo/gcc-trunk/gcc/gimplify.cc:7109 0xc2129d gimplify_bind_expr /repo/gcc-trunk/gcc/gimplify.cc:1428 0xc1d670 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /repo/gcc-trunk/gcc/gimplify.cc:15257 0xc2ee4f gimplify_stmt(tree_node**, gimple**) /repo/gcc-trunk/gcc/gimplify.cc:7109 0xc2ee4f gimplify_body(tree_node*, bool) /repo/gcc-trunk/gcc/gimplify.cc:16313 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. $ mips64el-unknown-linux-gnuabi64-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-mips64el/bin/mips64el-unknown-linux-gnuabi64-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-7721-20220319135312-gb60bc913cca-checking-yes-rtl-df-extra-mips64el/bin/../libexec/gcc/mips64el-unknown-linux-gnuabi64/12.0.1/lto-wrapper Target: mips64el-unknown-linux-gnuabi64 Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --with-cloog --with-ppl --with-isl --with-sysroot=/usr/mips64el-unknown-linux-gnuabi64 --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=mips64el-unknown-linux-gnuabi64 --with-ld=/usr/bin/mips64el-unknown-linux-gnuabi64-ld --with-as=/usr/bin/mips64el-unknown-linux-gnuabi64-as --disable-multilib --with-abi=64 --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-7721-20220319135312-gb60bc913cca-checking-yes-rtl-df-extra-mips64el Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220319 (experimental) (GCC)