Commit c459c97b by Jan Hubicka Committed by Jan Hubicka

re PR lto/45375 ([meta-bug] Issues with building Mozilla (i.e. Firefox) with LTO)

	PR lto/45375
	* profile.c (read_profile_edge_counts): Ignore profile inconistency
	when correcting profile.

From-SVN: r168643
parent 06c9eb51
2011-01-10 Jan Hubicka <jh@suse.cz> 2011-01-10 Jan Hubicka <jh@suse.cz>
PR lto/45375
* profile.c (read_profile_edge_counts): Ignore profile inconistency
when correcting profile.
2011-01-10 Jan Hubicka <jh@suse.cz>
PR lto/46083 PR lto/46083
* lto-streamer-out.c (pack_ts_function_decl_value_fields): Store * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
DECL_FINI_PRIORITY. DECL_FINI_PRIORITY.
......
...@@ -409,8 +409,17 @@ read_profile_edge_counts (gcov_type *exec_counts) ...@@ -409,8 +409,17 @@ read_profile_edge_counts (gcov_type *exec_counts)
e->count = exec_counts[exec_counts_pos++]; e->count = exec_counts[exec_counts_pos++];
if (e->count > profile_info->sum_max) if (e->count > profile_info->sum_max)
{ {
error ("corrupted profile info: edge from %i to %i exceeds maximal count", if (flag_profile_correction)
bb->index, e->dest->index); {
static bool informed = 0;
if (!informed)
inform (input_location,
"corrupted profile info: edge count exceeds maximal count");
informed = 1;
}
else
error ("corrupted profile info: edge from %i to %i exceeds maximal count",
bb->index, e->dest->index);
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment