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

--- Comment #9 from Markus Trippelsdorf <octoploid at yandex dot com> ---
Maybe something like this:

diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c
index ef9e24224921..66f87816e1bf 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)
+                         break;
                        e->indirect_info->common_target_id
                          = h->hvalue.counters [0];
                        e->indirect_info->common_target_probability

Seems to fix Mozilla build untill the next (unrelated) ICE:

/var/tmp/mozilla-central/js/src/vm/Stack.cpp: In member function ‘operator++’:
/var/tmp/mozilla-central/js/src/vm/Stack.cpp:717:1: internal compiler error: in
fixup_reorder_chain, at cfgrtl.c:3739
 }
 ^
0x5b594c fixup_reorder_chain
        ../../gcc/gcc/cfgrtl.c:3738
0x5b594c cfg_layout_finalize()
        ../../gcc/gcc/cfgrtl.c:4295
0xd42eb2 duplicate_computed_gotos
        ../../gcc/gcc/bb-reorder.c:2492
0xd42eb2 execute
        ../../gcc/gcc/bb-reorder.c:2524
Please submit a full bug report,

Reply via email to