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

--- Comment #6 from octoploid at yandex dot com ---
Program received signal SIGFPE, Arithmetic exception.
[Switching to process 21235]
0x000000000052531d in want_inline_self_recursive_call_p (edge=0x7ffff74412d8,
outer_node=0x7ffff7442260, peeling=<optimized out>, depth=1) at
../../gcc/gcc/ipa-inline.c:702
702               && (edge->frequency * CGRAPH_FREQ_BASE / caller_freq
(gdb) bt
#0  0x000000000052531d in want_inline_self_recursive_call_p
(edge=0x7ffff74412d8, outer_node=0x7ffff7442260, peeling=<optimized out>,
depth=1)
    at ../../gcc/gcc/ipa-inline.c:702
#1  0x0000000000fca3bb in inline_small_functions () at
../../gcc/gcc/ipa-inline.c:1761
#2  ipa_inline () at ../../gcc/gcc/ipa-inline.c:2015
#3  (anonymous namespace)::pass_ipa_inline::execute (this=0x7ffff74412d8) at
../../gcc/gcc/ipa-inline.c:2385
#4  0x0000000000a6ad8a in execute_one_pass (pass=pass@entry=0x16c5520) at
../../gcc/gcc/passes.c:2215
#5  0x0000000000a6b61b in execute_ipa_pass_list (pass=0x16c5520) at
../../gcc/gcc/passes.c:2579
#6  0x000000000080e287 in ipa_passes () at ../../gcc/gcc/cgraphunit.c:2028
#7  compile () at ../../gcc/gcc/cgraphunit.c:2118
#8  0x000000000080ea95 in finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:2272
#9  0x000000000061175f in cp_write_global_declarations () at
../../gcc/gcc/cp/decl2.c:4403
#10 0x0000000000b152dd in compile_file () at ../../gcc/gcc/toplev.c:559
#11 0x0000000000b17188 in do_compile () at ../../gcc/gcc/toplev.c:1894
#12 toplev_main (argc=13, argv=0x7fffffffe308) at ../../gcc/gcc/toplev.c:1970
#13 0x00007ffff75fba6e in __libc_start_main () from /lib/libc.so.6
#14 0x0000000000527081 in _start ()
(gdb) p caller_freq
$1 = 0
(gdb) p outer_node->global.inlined_to
$2 = (cgraph_node *) 0x7ffff73ff980
(gdb) p outer_node->callers->frequency
$3 = 0

Reply via email to