]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
profile.c: Update calls to inform.
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 20 Aug 2008 13:50:26 +0000 (13:50 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Wed, 20 Aug 2008 13:50:26 +0000 (13:50 +0000)
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

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

index 8a62653e7740c3ac8ebd99283b6ed142a4584620..5c137ee34aafcd99c9fcb7c59898ed0a99862826 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 761c8ad4b07a3429e14c055f53d1bd0bedf7169c..6aca9179078e021f61fa5a7542b21209adb6ae44 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 e2caceca035644450e2beac0b5a82f1a6bdbad7e..b5b9be837da0616991345bf9dd09a22be1db9752 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;
        }