https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123496
Bug ID: 123496
Summary: ICE peculative edges are not adjacent
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: gcov-profile
Assignee: unassigned at gcc dot gnu.org
Reporter: kugan at gcc dot gnu.org
Target Milestone: ---
Created attachment 63292
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63292&action=edit
testcase
gcc -std=c18 -Ofast -flto=jobserver -fauto-profile=test.gcov src1.i src2.i
with attached gcov and src produces:
lto1: error: speculative edges are not adjacent
balance_nonroot/3 (balance_nonroot)
Type: function definition analyzed
Visibility: prevailing_def_ironly
References: balance_nonroot_pParent/4 (read) balance_nonroot_pParent/4 (addr)
decodeFlags_pPage/5 (write) cellSizePtrNoPayload/2 (addr) decodeFlags_pPage/5
(write) btreeParseCellPtrIndex/1 (addr) balance_nonroot_pNew/6 (read)
balance_nonroot_pNew/6 (addr) balance_nonroot_info/7 (addr)
balance_nonroot_pParent/4 (addr) cellSizePtrNoPayload/2 (addr) (speculative)
balance_nonroot_pNew/6 (addr) balance_nonroot_info/7 (addr)
btreeParseCellPtrIndex/1 (addr) (speculative) balance_nonroot_pParent/4 (addr)
cellSizePtrNoPayload/2 (addr) (speculative)
Referring:
Read from file: /tmp/ccz7VDK1.o
Availability: local
Profile id: 2029414804
Unit id: 1
Function flags: count:323445990950 (auto FDO) local hot
Called by: sqlite3_step/8 (1073741824 (estimated locally, globally 0 auto
FDO),1.00 per call)
Calls: cellSizePtrNoPayload.constprop.0/11 (speculative) (0 (auto FDO),0.00
per call) btreeParseCellPtrIndex.constprop.0/12 (speculative) (38292887776760
(auto FDO),118.39 per call) cellSizePtrNoPayload.constprop.0/11 (speculative)
(950853274600 (auto FDO),2.94 per call)
Invalid sum of caller counts 0 (auto FDO), should be 323445990950 (auto FDO)
indirect simple callsite, not calling a known parameter, flags 0, num
speculative call targets: 1
indirect simple callsite, not calling a known parameter, flags 0, num
speculative call targets: 2
during IPA pass: cp
lto1: internal compiler error: verify_cgraph_node failed
0x22ae1f7 internal_error(char const*, ...)
../../gcc-ro/gcc/diagnostic-global-context.cc:787
0x977a33 cgraph_node::verify_node()
../../gcc-ro/gcc/cgraph.cc:4480
0x962573 symtab_node::verify()
../../gcc-ro/gcc/symtab.cc:1377
0x963a43 symtab_node::verify_symtab_nodes()
../../gcc-ro/gcc/symtab.cc:1499
0xceec93 symtab_node::checking_verify_symtab_nodes()
../../gcc-ro/gcc/cgraph.h:718
0xceec93 symbol_table::remove_unreachable_nodes(_IO_FILE*)
../../gcc-ro/gcc/ipa.cc:688
0xe29ba3 execute_todo
../../gcc-ro/gcc/passes.cc:2163
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
lto-wrapper: fatal error: /mnt/scratch.grco_devs3/kvivekananda/install2/bin/gcc
returned 1 exit status
compilation terminated.