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

            Bug ID: 105977
           Summary: [12/13 Regression] ICE in
                    gimple_call_static_chain_flags, at gimple.cc:1636
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started between 20211107 and 20211114, at -Os :
(from gcc.c-torture/execute/920612-2.c)
(gcc configured with --enable-checking=yes)


$ cat z1.c
void f ()
{
  int i = 0;
  int a (int x)
    {
      while (x)
        i++, x--;
      return x;
    }
  if (a (2) != 0)
    return;
}


$ gcc-13-20220612 -c z1.c -O2 -fdisable-ipa-inline
cc1: note: disable pass ipa-inline for functions in the range of [0,
4294967295]
$
$ gcc-13-20220612 -c z1.c -Os -fdisable-ipa-inline
cc1: note: disable pass ipa-inline for functions in the range of [0,
4294967295]
during GIMPLE pass: alias
z1.c: In function 'f':
z1.c:1:6: internal compiler error: in gimple_call_static_chain_flags, at
gimple.cc:1636
    1 | void f ()
      |      ^
0xa75e29 gimple_call_static_chain_flags(gcall const*)
        ../../gcc/gimple.cc:1636
0x1086681 handle_rhs_call
        ../../gcc/tree-ssa-structalias.cc:4345
0x1087fe5 find_func_aliases_for_call
        ../../gcc/tree-ssa-structalias.cc:5010
0x1087fe5 find_func_aliases
        ../../gcc/tree-ssa-structalias.cc:5113
0x108b7a6 compute_points_to_sets
        ../../gcc/tree-ssa-structalias.cc:7536
0x108b7a6 compute_may_aliases()
        ../../gcc/tree-ssa-structalias.cc:8044
0xd0bbde execute_function_todo
        ../../gcc/passes.cc:2057
0xd0c712 execute_todo
        ../../gcc/passes.cc:2139

Reply via email to