From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9992 invoked by alias); 16 Dec 2013 08:02:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9952 invoked by uid 48); 16 Dec 2013 08:02:30 -0000 From: "octoploid at yandex dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/59265] [4.9 Regression] Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC CPU2006 Date: Mon, 16 Dec 2013 08:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: octoploid at yandex dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01340.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59265 --- Comment #8 from Markus Trippelsdorf --- 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 }