From: marxin Date: Tue, 29 Oct 2019 08:44:40 +0000 (+0000) Subject: Move Leak in GCC memory report to the first column. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb139611b3d0edfe2a707e3713b6faba0a44b215;p=thirdparty%2Fgcc.git Move Leak in GCC memory report to the first column. 2019-10-29 Martin Liska * ggc-common.c: Move Leak to the first column. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277558 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1942f4e315a1..6f5c26e14a90 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-10-29 Martin Liska + + * ggc-common.c: Move Leak to the first column. + 2019-10-29 Martin Liska * cgraphunit.c (symbol_table::compile): Remove argument diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 8bc77a0a0366..37d3c5df9e1f 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -887,10 +887,11 @@ public: fprintf (stderr, "%-48s " PRsa (9) ":%5.1f%%" PRsa (9) ":%5.1f%%" PRsa (9) ":%5.1f%%" PRsa (9) ":%5.1f%%" PRsa (9) "\n", - prefix, SIZE_AMOUNT (m_collected), + prefix, + SIZE_AMOUNT (balance), get_percent (balance, total.get_balance ()), + SIZE_AMOUNT (m_collected), get_percent (m_collected, total.m_collected), SIZE_AMOUNT (m_freed), get_percent (m_freed, total.m_freed), - SIZE_AMOUNT (balance), get_percent (balance, total.get_balance ()), SIZE_AMOUNT (m_overhead), get_percent (m_overhead, total.m_overhead), SIZE_AMOUNT (m_times)); @@ -937,8 +938,8 @@ public: static inline void dump_header (const char *name) { - fprintf (stderr, "%-48s %11s%17s%17s%16s%17s\n", name, "Garbage", "Freed", - "Leak", "Overhead", "Times"); + fprintf (stderr, "%-48s %11s%17s%17s%16s%17s\n", name, "Leak", "Garbage", + "Freed", "Overhead", "Times"); } /* Freed memory in bytes. */