https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93166
Bug ID: 93166
Summary: [10 Regression] ICE in get_info_about_necessary_edges,
at ipa-cp.c:4137 since r278893
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: fxue at gcc dot gnu.org, marxin at gcc dot gnu.org
Target Milestone: ---
Created attachment 47594
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47594&action=edit
Reduced test-case
Following is causing ICE:
$ c++ -shared k*.ii -flto -O2 -fPIC -fvisibility=hidden
during IPA pass: cp
lto1: internal compiler error: in get_info_about_necessary_edges, at
ipa-cp.c:4137
0x7b1f23 get_info_about_necessary_edges<ipa_polymorphic_call_context>
/home/marxin/Programming/gcc/gcc/ipa-cp.c:4137
0x7b1f23 decide_about_value<ipa_polymorphic_call_context>
/home/marxin/Programming/gcc/gcc/ipa-cp.c:5387
0x7b1f23 decide_whether_version_node
/home/marxin/Programming/gcc/gcc/ipa-cp.c:5496
0x7b1f23 ipcp_decision_stage
/home/marxin/Programming/gcc/gcc/ipa-cp.c:5633
0x7b1f23 ipcp_driver
/home/marxin/Programming/gcc/gcc/ipa-cp.c:5816
0x7b1f23 execute
/home/marxin/Programming/gcc/gcc/ipa-cp.c:5907
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: c++ returned 1 exit status
compilation terminated.
/usr/bin/ld: error: lto-wrapper failed
collect2: error: ld returned 1 exit status