===================================================================
@@ -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
===================================================================
@@ -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