This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ipa/59265] [4.9 Regression] Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC CPU2006


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59265

--- Comment #8 from Markus Trippelsdorf <octoploid at yandex dot com> ---
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 18740]
ipa_profile_generate_summary () at ../../gcc/gcc/ipa-profile.c:214
214                               = h->hvalue.counters [0];
(gdb) bt
#0  ipa_profile_generate_summary () at ../../gcc/gcc/ipa-profile.c:214
#1  0x0000000000a9f197 in execute_ipa_summary_passes (ipa_pass=0x175c300) at
../../gcc/gcc/passes.c:2011
#2  0x0000000000830f94 in ipa_passes () at ../../gcc/gcc/cgraphunit.c:2022
#3  compile () at ../../gcc/gcc/cgraphunit.c:2126
#4  0x00000000008314e5 in finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:2280
#5  0x000000000062a58f in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:4431
#6  0x0000000000b4763d in compile_file () at ../../gcc/gcc/toplev.c:561
#7  0x0000000000b495b8 in do_compile () at ../../gcc/gcc/toplev.c:1887
#8  toplev_main (argc=16, argv=0x7fffffffe0b8) at ../../gcc/gcc/toplev.c:1963
#9  0x00007ffff75eff90 in __libc_start_main () from /lib/libc.so.6
#10 0x000000000053e021 in _start ()
(gdb) l
209                            counter 2 is total number of executions.  */
210                         if (h->hvalue.counters[2])
211                           {
212                             struct cgraph_edge * e = cgraph_edge (node,
stmt);
213                             e->indirect_info->common_target_id
214                               = h->hvalue.counters [0];
215                             e->indirect_info->common_target_probability
216                               = GCOV_COMPUTE_SCALE (h->hvalue.counters [1],
h->hvalue.counters [2]);
217                             if (e->indirect_info->common_target_probability
> REG_BR_PROB_BASE)
218                               {
(gdb) p *e
$4 = {
  count = 990, 
  caller = 0x7ffff5b62668, 
  callee = 0x7ffff5ada148, 
  prev_caller = 0x0, 
  next_caller = 0x7ffff5c92f70, 
  prev_callee = 0x0, 
  next_callee = 0x7ffff58c0820, 
  call_stmt = 0x7ffff5875da8, 
  indirect_info = 0x0, 
  aux = 0x0, 
  inline_failed = CIF_FUNCTION_NOT_CONSIDERED, 
  lto_stmt_uid = 0, 
  frequency = 1000, 
  uid = 769, 
  indirect_inlining_edge = 0, 
  indirect_unknown_callee = 0, 
  call_stmt_cannot_inline_p = 0, 
  can_throw_external = 0, 
  speculative = 0
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]