2008-08-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2008 13:50:26 +0000 (13:50 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Aug 2008 13:50:26 +0000 (13:50 +0000)
* profile.c: Update calls to inform.
* value-prof.c: Update calls to inform.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139294 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/profile.c
gcc/value-prof.c

index 8a62653..5c137ee 100644 (file)
@@ -1,5 +1,10 @@
 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.
        * toplev.h (inform): Update declaration.
        * builtins.c: Update all calls to inform.
index 761c8ad..6aca917 100644 (file)
@@ -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 */
index e2cacec..b5b9be8 100644 (file)
@@ -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;
        }