profile.c: Update calls to inform.

2008-08-20  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

	* profile.c: Update calls to inform.
	* value-prof.c: Update calls to inform.

From-SVN: r139294
parent 1f5b3869
2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* profile.c: Update calls to inform.
* value-prof.c: Update calls to inform.
2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* diagnostic.c (inform): Add an explicit location_t parameter. * diagnostic.c (inform): Add an explicit location_t parameter.
* toplev.h (inform): Update declaration. * toplev.h (inform): Update declaration.
* builtins.c: Update all calls to inform. * builtins.c: Update all calls to inform.
......
...@@ -579,7 +579,7 @@ compute_branch_probabilities (void) ...@@ -579,7 +579,7 @@ compute_branch_probabilities (void)
if (informed == 0) if (informed == 0)
{ {
informed = 1; informed = 1;
inform ("correcting inconsistent profile data"); inform (input_location, "correcting inconsistent profile data");
} }
correct_negative_edge_counts (); correct_negative_edge_counts ();
/* Set bb counts to the sum of the outgoing edge counts */ /* Set bb counts to the sum of the outgoing edge counts */
......
...@@ -464,9 +464,9 @@ check_counter (gimple stmt, const char * name, ...@@ -464,9 +464,9 @@ check_counter (gimple stmt, const char * name,
: DECL_SOURCE_LOCATION (current_function_decl); : DECL_SOURCE_LOCATION (current_function_decl);
if (flag_profile_correction) if (flag_profile_correction)
{ {
inform ("%HCorrecting inconsistent value profile: " inform (locus, "Correcting inconsistent value profile: "
"%s profiler overall count (%d) does not match BB count " "%s profiler overall count (%d) does not match BB count "
"(%d)", &locus, name, (int)*all, (int)bb_count); "(%d)", name, (int)*all, (int)bb_count);
*all = bb_count; *all = bb_count;
if (*count > *all) if (*count > *all)
*count = *all; *count = *all;
...@@ -474,8 +474,9 @@ check_counter (gimple stmt, const char * name, ...@@ -474,8 +474,9 @@ check_counter (gimple stmt, const char * name,
} }
else else
{ {
error ("%HCorrupted value profile: %s profiler overall count (%d) " error (locus,
"does not match BB count (%d)", &locus, name, (int)*all, "Corrupted value profile: %s profiler overall count (%d) "
"does not match BB count (%d)", name, (int)*all,
(int)bb_count); (int)bb_count);
return true; return true;
} }
......
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