https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97162
Bug ID: 97162 Summary: [11 Regression] ICE when building SPECCPU 2006 Gamess benchmark Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: tnfchris at gcc dot gnu.org Target Milestone: --- Unforunately I don't have data going back to the start of GCC 11 and I also don't know any fortran so no idea how to go about minimizing this.. But Gamess in SPECCPU 2006 fails with an ICE: 0x6ca753 tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ../.././gcc/tree.c:9905 0x753033 contains_struct_check(tree_node*, tree_node_structure_enum, char const*, int, char const*) ../.././gcc/tree.h:3413 0x753033 compare_base_decls(tree_node*, tree_node*) ../.././gcc/alias.c:2145 0xdaa9c3 ptr_deref_may_alias_decl_p ../.././gcc/tree-ssa-alias.c:227 0x17f67bb dr_may_alias_p(data_reference const*, data_reference const*, loop*) ../.././gcc/tree-data-ref.c:2769 0x17f693f initialize_data_dependence_relation(data_reference*, data_reference*, vec<loop*, va_heap, vl_ptr>) ../.././gcc/tree-data-ref.c:2843 0x17fb13b compute_all_dependences(vec<data_reference*, va_heap, vl_ptr>, vec<data_dependence_relation*, va_heap, vl_ptr>*, vec<loop*, va_heap, vl_ptr>, bool) ../.././gcc/tree-data-ref.c:5391 0x1800807 compute_data_dependences_for_loop(loop*, bool, vec<loop*, va_heap, vl_ptr>*, vec<data_reference*, va_heap, vl_ptr>*, vec<data_dependence_relation*, va_heap, vl_ptr>*) ../.././gcc/tree-data-ref.c:5868 0xd6b307 tree_predictive_commoning_loop ../.././gcc/tree-predcom.c:3211 0xd6b307 tree_predictive_commoning() ../.././gcc/tree-predcom.c:3333 when built with -Ofast -fomit-frame-pointer -flto --param ipa-cp-eval-threshold=1 --param ipa-cp-unit-growth=80 -fno-inline-functions-called-once Removing any of these options seems to make it go away.