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

            Bug ID: 98330
           Summary: [11 Regression] ICE in compute_parm_map, at
                    ipa-modref.c:2900
           Product: gcc
           Version: 11.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, at -O1+ :


$ cat z1.cc
float a = __builtin_pow[1] (3.0, 2);


$ cat z2.cc
float f (float x)
{
  return __builtin_pow[1] (x, 2);
}


$ g++-11-20201213 -c z1.cc -O2
z1.cc:1:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
    1 | float a = __builtin_pow[1] (3.0, 2);
      |                          ^
during IPA pass: modref
z1.cc:1:36: internal compiler error: Segmentation fault
    1 | float a = __builtin_pow[1] (3.0, 2);
      |                                    ^
0xc8f5ff crash_signal
        ../../gcc/toplev.c:327
0x8c75f2 symtab_node::ultimate_alias_target(availability*, symtab_node*)
        ../../gcc/cgraph.h:3182
0x8c75f2 cgraph_node::ultimate_alias_target(availability*, symtab_node*)
        ../../gcc/cgraph.h:3203
0x8c75f2 cgraph_node::function_or_virtual_thunk_symbol(availability*,
symtab_node*)
        ../../gcc/cgraph.c:3868
0xaa629a compute_parm_map
        ../../gcc/ipa-modref.c:2900
0xaa6961 compute_parm_map
        ../../gcc/ipa-modref.c:2891
0xaa6961 propagate_unknown_call
        ../../gcc/ipa-modref.c:3271
0xaa8757 modref_propagate_in_scc
        ../../gcc/ipa-modref.c:3425
0xaa8f7c execute
        ../../gcc/ipa-modref.c:3833

Reply via email to