From: Jan Hubicka Date: Mon, 16 Dec 2013 13:37:43 +0000 (+0100) Subject: re PR ipa/59265 (Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC... X-Git-Tag: releases/gcc-4.9.0~2059 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd3c9a7ebcb741206fc934a39784cc1d83cd56fd;p=thirdparty%2Fgcc.git re PR ipa/59265 (Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC CPU2006) PR ipa/59265 * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when call is already devirtualized. Co-Authored-By: Markus Trippelsdorf From-SVN: r206014 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e50209f89f73..a18f4952715a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2013-12-14 Jan Hubicka + Markus Trippelsdorf + + PR ipa/59265 + * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when + call is already devirtualized. + 2013-12-16 Jakub Jelinek * Makefile.in (version.o): Restore dependencies on diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index ef9e24224921..a84b62dca728 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -210,6 +210,8 @@ ipa_profile_generate_summary (void) if (h->hvalue.counters[2]) { struct cgraph_edge * e = cgraph_edge (node, stmt); + if (e && !e->indirect_unknown_callee) + continue; e->indirect_info->common_target_id = h->hvalue.counters [0]; e->indirect_info->common_target_probability