]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/profile.c
Introduce dump_location_t
[thirdparty/gcc.git] / gcc / profile.c
index 8ba6dc7baec8d475cb6cdbd2d1ae8b30785c2c6b..0cd0270b4fb43b0f941fa8243b180eb8d14c8d08 100644 (file)
@@ -447,9 +447,14 @@ read_profile_edge_counts (gcov_type *exec_counts)
                      {
                        static bool informed = 0;
                        if (dump_enabled_p () && !informed)
-                         dump_printf_loc (MSG_NOTE, input_location,
-                                           "corrupted profile info: edge count"
-                                           " exceeds maximal count\n");
+                         {
+                           dump_location_t loc
+                             = dump_location_t::from_location_t
+                               (input_location);
+                           dump_printf_loc (MSG_NOTE, loc,
+                                            "corrupted profile info: edge count"
+                                            " exceeds maximal count\n");
+                         }
                        informed = 1;
                      }
                    else
@@ -672,7 +677,8 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum)
          if (dump_enabled_p () && informed == 0)
            {
              informed = 1;
-             dump_printf_loc (MSG_NOTE, input_location,
+             dump_printf_loc (MSG_NOTE,
+                             dump_location_t::from_location_t (input_location),
                               "correcting inconsistent profile data\n");
            }
          correct_negative_edge_counts ();