mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 06:20:25 +08:00
Fix format warning which showed up on FreeBSD 11.3.
PR bootstrap/93962 * value-prof.c (dump_histogram_value): Use std::abs.
This commit is contained in:
parent
6876b269bc
commit
20a235a8b4
@ -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
|
||||
|
@ -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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user