[Bug middle-end/63376] [5.0 Regression] ICE: in operator[], at vec.h:736 compiling team.c

danglin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 10 16:13:00 GMT 2014


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

--- Comment #3 from John David Anglin <danglin at gcc dot gnu.org> ---
(gdb) frame 2
#2  0x007eaf1c in
_ZL28evaluate_properties_for_edgeP11cgraph_edgebPjP3vecIP9tree_node7va_heap6vl_ptrES8_PS2_IP21ipa_agg_jump_functionS5_S6_E
(e=0x7afef780,
    inline_p=true, clause_ptr=0x7eff0dc0, known_vals_ptr=0x7eff0dc4,
    known_binfos_ptr=0x7eff0dc8, known_aggs_ptr=0x7eff0dcc)
    at ../../gcc/gcc/ipa-inline-analysis.c:903
903           struct ipa_edge_args *args = IPA_EDGE_REF (e);
(gdb) p e->uid
$5 = 148
(gdb) p *e
$6 = {count = 0, caller = 0x7aefa380, callee = 0x7af860e0, prev_caller = 0x0,
  next_caller = 0x0, prev_callee = 0x0, next_callee = 0x0,
  call_stmt = 0x7aff8048, indirect_info = 0x0, aux = 0x0,
  inline_failed = CIF_FUNCTION_NOT_CONSIDERED, lto_stmt_uid = 0,
  frequency = 1000, uid = 148, indirect_inlining_edge = 0,
  indirect_unknown_callee = 0, call_stmt_cannot_inline_p = 0,
  can_throw_external = 0, speculative = 0, in_polymorphic_cdtor = 0}
(gdb) p *ipa_edge_args_vector
$7 = {m_vecpfx = {m_alloc = 255, m_using_auto_storage = 0, m_num = 148},
  m_vecdata = {{jump_functions = 0x0, polymorphic_call_contexts = 0x0}}}

Size of vec is one too small.



More information about the Gcc-bugs mailing list