diff options
author | Jeff Law <law@redhat.com> | 2020-03-04 16:25:11 -0700 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2020-03-04 16:25:11 -0700 |
commit | 20a235a8b443a81ea0ec6a10f260b119f2193a69 (patch) | |
tree | d310136eb3f76b7ffcae516cf4bdf82fa7b0384c /gcc/value-prof.c | |
parent | 6876b269bc7fe6465fedfed87c31e6175992129f (diff) | |
download | gcc-20a235a8b443a81ea0ec6a10f260b119f2193a69.zip gcc-20a235a8b443a81ea0ec6a10f260b119f2193a69.tar.gz gcc-20a235a8b443a81ea0ec6a10f260b119f2193a69.tar.bz2 |
Fix format warning which showed up on FreeBSD 11.3.
PR bootstrap/93962
* value-prof.c (dump_histogram_value): Use std::abs.
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 8e9f129..585b909 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -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++) |