]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR ipa/59265 (Segmentation fault in ipa_note_param_call for -fprofile-use in SPEC...
authorJan Hubicka <jh@suse.cz>
Mon, 16 Dec 2013 13:37:43 +0000 (14:37 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Mon, 16 Dec 2013 13:37:43 +0000 (13:37 +0000)
PR ipa/59265
* ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
call is already devirtualized.

Co-Authored-By: Markus Trippelsdorf <octoploid@yandex.com>
From-SVN: r206014

gcc/ChangeLog
gcc/ipa-profile.c

index e50209f89f7319baedd405c693a28f0c790277d2..a18f4952715a31ecb53df4e84de5dc6c1bd46bed 100644 (file)
@@ -1,3 +1,10 @@
+2013-12-14  Jan Hubicka  <jh@suse.cz>
+           Markus Trippelsdorf <octoploid@yandex.com>
+
+       PR ipa/59265
+       * ipa-profile.c (ipa_profile_generate_summary): Do not ICE when
+       call is already devirtualized.
+       
 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
 
        * Makefile.in (version.o): Restore dependencies on
index ef9e2422492115b176bf26b15762dee6f7acfcb0..a84b62dca72865a77a0890bda256a12fe4ef9d22 100644 (file)
@@ -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