diff options
author | Martin Liska <mliska@suse.cz> | 2020-09-02 14:30:16 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-09-21 10:09:26 +0200 |
commit | 79f4e20dd1280e6a44736070b0d5213f9a8f85d4 (patch) | |
tree | 4cd45738168a0f369744fc4a704dea910f87e8d7 /gcc/ggc-common.c | |
parent | 432c551b17d655823a4825855b4b966441c8cfb3 (diff) | |
download | gcc-79f4e20dd1280e6a44736070b0d5213f9a8f85d4.zip gcc-79f4e20dd1280e6a44736070b0d5213f9a8f85d4.tar.gz gcc-79f4e20dd1280e6a44736070b0d5213f9a8f85d4.tar.bz2 |
Use SIZE_AMOUNT macro for GGC memory allocation numbers.
gcc/ChangeLog:
* ggc-common.c (ggc_prune_overhead_list): Use SIZE_AMOUNT.
* ggc-page.c (release_pages): Likewise.
(ggc_collect): Likewise.
(ggc_trim): Likewise.
(ggc_grow): Likewise.
* timevar.c (timer::print): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/ext/timevar1.C: Prune more possible number values.
* g++.dg/ext/timevar2.C: Likewise.
Diffstat (limited to 'gcc/ggc-common.c')
-rw-r--r-- | gcc/ggc-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 6f8da30..007a028 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -1008,7 +1008,7 @@ ggc_prune_overhead_list (void) } } -/* Print memory used by heap in kb if this info is available. */ +/* Print memory used by heap if this info is available. */ void report_heap_memory_use () @@ -1020,7 +1020,7 @@ report_heap_memory_use () #define MALLINFO_FN mallinfo #endif if (!quiet_flag) - fprintf (stderr," {heap %luk}", - (unsigned long) MALLINFO_FN ().arena / ONE_K); + fprintf (stderr, " {heap " PRsa (0) "}", + SIZE_AMOUNT (MALLINFO_FN ().arena)); #endif } |