https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103055
Bug ID: 103055 Summary: [12 Regression] ICE: in get_ssa_name_flags, at ipa-modref.c:1660 with --param=modref-max-depth=0 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz CC: marxin at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Created attachment 51727 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51727&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -fipa-modref --param=modref-max-depth=0 testcase.c during IPA pass: modref testcase.c: In function 'foo': testcase.c:5:1: internal compiler error: in get_ssa_name_flags, at ipa-modref.c:1660 5 | } | ^ 0x6fdd23 get_ssa_name_flags /repo/gcc-trunk/gcc/ipa-modref.c:1660 0x6fdd23 analyze_parms /repo/gcc-trunk/gcc/ipa-modref.c:2179 0x6fdd23 analyze_function /repo/gcc-trunk/gcc/ipa-modref.c:2351 0x10deaae modref_generate /repo/gcc-trunk/gcc/ipa-modref.c:2444 0x123af82 execute_ipa_summary_passes(ipa_opt_pass_d*) /repo/gcc-trunk/gcc/passes.c:2248 0xe801f0 ipa_passes /repo/gcc-trunk/gcc/cgraphunit.c:2179 0xe801f0 symbol_table::compile() /repo/gcc-trunk/gcc/cgraphunit.c:2289 0xe82887 symbol_table::compile() /repo/gcc-trunk/gcc/cgraphunit.c:2269 0xe82887 symbol_table::finalize_compilation_unit() /repo/gcc-trunk/gcc/cgraphunit.c:2537 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-4857-20211103014547-g62af7d9402f-checking-yes-rtl-df-extra-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 --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-4857-20211103014547-g62af7d9402f-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211103 (experimental) (GCC)