https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90896
Bug ID: 90896 Summary: [10 Regression] internal compiler error indirect_ref_may_alias_decl_p Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: i686 On i686, r272370 failed to build 403.gcc in SPEC CPU 2006 with LTO: gcc -m32 -O3 -funroll-loops -msse2 -mfpmath=sse -ffast-math -fwhole-program -flto=jobserver -fuse-linker-plugin alloca.o asprintf.o vasprintf.o c-parse.o c-lang.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-format.o c-semantics.o c-objc-common.o main.o cpplib.o cpplex.o cppmacro.o cppexp.o cppfiles.o cpphash.o cpperror.o cppinit.o cppdefault.o line-map.o mkdeps.o prefix.o version.o mbchar.o alias.o bb-reorder.o bitmap.o builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o cfglayout.o cfgloop.o cfgrtl.o combine.o conflict.o convert.o cse.o cselib.o dbxout.o debug.o dependence.o df.o diagnostic.o doloop.o dominance.o dwarf2asm.o dwarf2out.o dwarfout.o emit-rtl.o except.o explow.o expmed.o expr.o final.o flow.o fold-const.o function.o gcse.o genrtl.o ggc-common.o global.o graph.o haifa-sched.o hash.o hashtable.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o integrate.o intl.o jump.o langhooks.o lcm.o lists.o local-alloc.o loop.o obstack.o optabs.o params.o predict.o print-rtl.o print-tree.o profile.o real.o recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o reorg.o resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o sched-ebb.o sched-rgn.o sched-vis.o sdbout.o sibcall.o simplify-rtx.o ssa.o ssa-ccp.o ssa-dce.o stmt.o stor-layout.o stringpool.o timevar.o toplev.o tree.o tree-dump.o tree-inline.o unroll.o varasm.o varray.o vmsdbgout.o xcoffout.o ggc-page.o i386.o xmalloc.o xexit.o hashtab.o safe-ctype.o splay-tree.o xstrdup.o md5.o fibheap.o xstrerror.o concat.o partition.o hex.o lbasename.o getpwd.o ucbqsort.o -lm -o gcc ... during RTL pass: rtl pre reload.c: In function 'find_reloads.constprop': reload.c:4285:1: internal compiler error: tree check: expected target_mem_ref, have var_decl in indirect_ref_may_alias_decl_p, at tree-ssa-alias.c:1476 4285 | } | ^ 0x6dcbd7 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../src-trunk/gcc/tree.c:9897 0x69aa48 tree_check(tree_node*, char const*, int, char const*, tree_code) ../../src-trunk/gcc/tree.h:3197 0x69aa48 indirect_ref_may_alias_decl_p ../../src-trunk/gcc/tree-ssa-alias.c:1476 0xd6281d refs_may_alias_p_2 ../../src-trunk/gcc/tree-ssa-alias.c:1758 0xd6281d refs_may_alias_p_1(ao_ref*, ao_ref*, bool) ../../src-trunk/gcc/tree-ssa-alias.c:1787 0x7e6ea8 rtx_refs_may_alias_p ../../src-trunk/gcc/alias.c:365 0x7eacfb true_dependence_1 ../../src-trunk/gcc/alias.c:2976 0x9ac43a compute_transp(rtx_def const*, int, simple_bitmap_def**, bitmap_head*, bitmap_head*, vec<modify_pair, va_heap, vl_ptr>*) ../../src-trunk/gcc/gcse-common.c:175 0x9a6c10 compute_local_properties ../../src-trunk/gcc/gcse.c:696 0x9aa5d0 compute_pre_data ../../src-trunk/gcc/gcse.c:1866 0x9aa5d0 one_pre_gcse_pass ../../src-trunk/gcc/gcse.c:2616 0x9aa5d0 execute_rtl_pre ../../src-trunk/gcc/gcse.c:4024 0x9aa5d0 execute ../../src-trunk/gcc/gcse.c:4068 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. make[4]: *** [/tmp/ccytEa9c.mk:17: /tmp/gcc.I7fAJf.ltrans5.ltrans.o] Error 1 make[4]: *** Waiting for unfinished jobs.... lto-wrapper: fatal error: make returned 2 exit status compilation terminated. The same thing happened with 176.gcc in SPEC CPU 2000.