diff mbox

Remove overactive profile sanity check

Message ID 20110110220420.GB2858@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka Jan. 10, 2011, 10:04 p.m. UTC
Hi,
input_profile_summary checks that sum_max exceeds number of runs.  The idea was
that main() has to be executed at least as many times as the runs is.  This is
not true for shared libraries as seen during mozilla build.  I've removed the check
thus and will commit it as obvious.

	PR lto/45375
	* lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
diff mbox

Patch

Index: lto-cgraph.c
===================================================================
--- lto-cgraph.c	(revision 168642)
+++ lto-cgraph.c	(working copy)
@@ -1435,9 +1435,6 @@ 
     {
       file_data->profile_info.runs = runs;
       file_data->profile_info.sum_max = lto_input_uleb128 (ib);
-      if (runs > file_data->profile_info.sum_max)
-	fatal_error ("Corrupted profile info in %s: sum_max is smaller than runs",
-		     file_data->file_name);
     }
 
 }