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

            Bug ID: 97698
           Summary: [11 Regression] ICE: Segmentation fault (in
                    duplicate_thunk_for_node)
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

g++-11.0.0-alpha20201101 snapshot (g:590febb5f6624f78b36402a7c9a9c318978f1efa)
ICEs when compiling gcc/testsuite/g++.dg/torture/pr83619.C w/ -O3 --param
ipa-cp-eval-threshold=30:

% g++-11.0.0 -O3 --param ipa-cp-eval-threshold=30 -c
gcc/testsuite/g++.dg/torture/pr83619.C
during IPA pass: cp
gcc/testsuite/g++.dg/torture/pr83619.C:64:1: internal compiler error:
Segmentation fault
   64 | }
      | ^
0x102afef crash_signal
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/toplev.c:330
0xbeaad8 duplicate_thunk_for_node
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/cgraphclones.c:242
0xbeaca7 cgraph_edge::redirect_callee_duplicating_thunks(cgraph_node*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/cgraphclones.c:265
0xbeb0e1 cgraph_node::create_clone(tree_node*, profile_count, bool,
vec<cgraph_edge*, va_heap, vl_ptr>, bool, cgraph_node*, ipa_param_adjustments*,
char const*)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/cgraphclones.c:429
0xbeb9e7 cgraph_node::create_virtual_clone(vec<cgraph_edge*, va_heap, vl_ptr>,
vec<ipa_replace_map*, va_gc, vl_embed>*, ipa_param_adjustments*, char const*,
unsigned int)
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/cgraphclones.c:615
0x1a3a766 create_specialized_node
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/ipa-cp.c:4576
0x1a3dddd decide_about_value<ipa_polymorphic_call_context>
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/ipa-cp.c:5514
0x1a3dddd decide_whether_version_node
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/ipa-cp.c:5579
0x1a3ed27 ipcp_decision_stage
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/ipa-cp.c:5732
0x1a3ed27 ipcp_driver
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/ipa-cp.c:5919
0x1a3ed27 execute
       
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20201101/work/gcc-11-20201101/gcc/ipa-cp.c:5994

Reply via email to