https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100661

            Bug ID: 100661
           Summary: [11/12 Regression] ICE in refs_may_alias_p_2, at
                    tree-ssa-alias.c:2460
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20201018 and 20201108 :


$ cat z1.c
void f (char **x)
{
  #pragma omp parallel for
  for (int i = 0; i < 16; i++)
    {
      char c[50];
      __builtin_strcpy (c, x[i]);
      int g (char)
      {
        __builtin_strcat (c, "foo");
      }
    }
}


$ gcc-11-20201018 -c z1.c -O2 -fopenmp
z1.c: In function 'g':
z1.c:8:14: error: parameter name omitted
    8 |       int g (char)
      |              ^~~~


$ gcc-12-20210516 -c z1.c -O2 -fopenmp
during GIMPLE pass: fre
z1.c: In function 'f._omp_fn.0':
z1.c:13:1: internal compiler error: in refs_may_alias_p_2, at
tree-ssa-alias.c:2460
   13 | }
      | ^
0xc40fa0 refs_may_alias_p_2
        ../../gcc/tree-ssa-alias.c:2460
0xc40fa0 refs_may_alias_p_1(ao_ref*, ao_ref*, bool)
        ../../gcc/tree-ssa-alias.c:2469
0xc4196d check_fnspec
        ../../gcc/tree-ssa-alias.c:2677
0xc41c30 call_may_clobber_ref_p_1(gcall*, ao_ref*, bool)
        ../../gcc/tree-ssa-alias.c:3051
0xc4293e stmt_may_clobber_ref_p_1(gimple*, ao_ref*, bool)
        ../../gcc/tree-ssa-alias.c:3127
0xc42b66 maybe_skip_until
        ../../gcc/tree-ssa-alias.c:3524
0xc42b66 get_continuation_for_phi(gimple*, ao_ref*, bool, unsigned int&,
bitmap_head**, bool, void* (*)(ao_ref*, tree_node*, void*, translate_flags*),
void*, translate_flags)
        ../../gcc/tree-ssa-alias.c:3601
0xc42f18 walk_non_aliased_vuses(ao_ref*, tree_node*, bool, void* (*)(ao_ref*,
tree_node*, void*), void* (*)(ao_ref*, tree_node*, void*, translate_flags*),
tree_node* (*)(tree_node*), unsigned int&, void*)
        ../../gcc/tree-ssa-alias.c:3690
0xcf4b96 vn_reference_lookup(tree_node*, tree_node*, vn_lookup_kind,
vn_reference_s**, bool, tree_node**, tree_node*)
        ../../gcc/tree-ssa-sccvn.c:3614
0xcfabc4 visit_reference_op_load
        ../../gcc/tree-ssa-sccvn.c:5063
0xcfabc4 visit_stmt
        ../../gcc/tree-ssa-sccvn.c:5503
0xcfb67b process_bb
        ../../gcc/tree-ssa-sccvn.c:7203
0xcfd0b8 do_rpo_vn
        ../../gcc/tree-ssa-sccvn.c:7688
0xcfda5f execute
        ../../gcc/tree-ssa-sccvn.c:7956

Reply via email to