Fix format warning which showed up on FreeBSD 11.3.
authorJeff Law <law@redhat.com>
Wed, 4 Mar 2020 23:25:11 +0000 (16:25 -0700)
committerJeff Law <law@redhat.com>
Wed, 4 Mar 2020 23:25:11 +0000 (16:25 -0700)
PR bootstrap/93962
* value-prof.c (dump_histogram_value): Use std::abs.

gcc/ChangeLog
gcc/value-prof.c

index 0df606a82115a9686340be604f7e848d45bf690e..5b2e4a83721f194a000399c3b613ac94c64abe07 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-04  Andrew Pinski  <apinski@marvell.com>
+
+       PR bootstrap/93962
+       * value-prof.c (dump_histogram_value): Use std::abs.
+
 2020-03-04  Martin Sebor  <msebor@redhat.com>
 
        PR tree-optimization/93986
index 8e9f129708a764fb018b9f11e6f693ad21c0770d..585b909096f2fa5b273954ebc79d029af5040acc 100644 (file)
@@ -266,7 +266,7 @@ dump_histogram_value (FILE *dump_file, histogram_value hist)
          if (hist->hvalue.counters)
            {
              fprintf (dump_file, " all: %" PRId64 "%s, values: ",
-                      abs ((int64_t) hist->hvalue.counters[0]),
+                      std::abs ((int64_t) hist->hvalue.counters[0]),
                       hist->hvalue.counters[0] < 0
                       ? " (values missing)": "");
              for (unsigned i = 0; i < GCOV_TOPN_VALUES; i++)