http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49786
--- Comment #14 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-07-21 13:10:36 UTC --- H.J. also reported: lto1: error: caller edge count is negative in the description. So it's likely the same issue as in comment #10. BTW the following already fixes the problem for me: - cs->count = cs->count * new_sum / orig_node_count; + cs->count = cs->count * (new_sum / orig_node_count);