From: Manuel López-Ibáñez Date: Wed, 20 Aug 2008 13:50:26 +0000 (+0000) Subject: profile.c: Update calls to inform. X-Git-Tag: releases/gcc-4.4.0~3040 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b6148c5b58b8e7f1df359425c886f8146d89ec6;p=thirdparty%2Fgcc.git profile.c: Update calls to inform. 2008-08-20 Manuel Lopez-Ibanez * profile.c: Update calls to inform. * value-prof.c: Update calls to inform. From-SVN: r139294 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8a62653e7740..5c137ee34aaf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-08-20 Manuel Lopez-Ibanez + + * profile.c: Update calls to inform. + * value-prof.c: Update calls to inform. + 2008-08-20 Manuel Lopez-Ibanez * diagnostic.c (inform): Add an explicit location_t parameter. diff --git a/gcc/profile.c b/gcc/profile.c index 761c8ad4b07a..6aca9179078e 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -579,7 +579,7 @@ compute_branch_probabilities (void) if (informed == 0) { informed = 1; - inform ("correcting inconsistent profile data"); + inform (input_location, "correcting inconsistent profile data"); } correct_negative_edge_counts (); /* Set bb counts to the sum of the outgoing edge counts */ diff --git a/gcc/value-prof.c b/gcc/value-prof.c index e2caceca0356..b5b9be837da0 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -464,9 +464,9 @@ check_counter (gimple stmt, const char * name, : DECL_SOURCE_LOCATION (current_function_decl); 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 " - "(%d)", &locus, name, (int)*all, (int)bb_count); + "(%d)", name, (int)*all, (int)bb_count); *all = bb_count; if (*count > *all) *count = *all; @@ -474,8 +474,9 @@ check_counter (gimple stmt, const char * name, } else { - error ("%HCorrupted value profile: %s profiler overall count (%d) " - "does not match BB count (%d)", &locus, name, (int)*all, + error (locus, + "Corrupted value profile: %s profiler overall count (%d) " + "does not match BB count (%d)", name, (int)*all, (int)bb_count); return true; }