diff options
author | Martin Liska <mliska@suse.cz> | 2015-06-03 16:49:13 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-06-03 14:49:13 +0000 |
commit | 80a4fe78bf071c07a71f640bd861193b85c27138 (patch) | |
tree | 6099942cfb1d37ffb58443756cd0f685b1cfd9f8 /gcc/bitmap.h | |
parent | 368054069fadd814a2d36d1614a393982019ed9b (diff) | |
download | gcc-80a4fe78bf071c07a71f640bd861193b85c27138.zip gcc-80a4fe78bf071c07a71f640bd861193b85c27138.tar.gz gcc-80a4fe78bf071c07a71f640bd861193b85c27138.tar.bz2 |
Fix GNU coding style in memory statistics.
* alloc-pool.h (struct pool_usage): Correct GNU coding style.
* bitmap.h (struct bitmap_usage): Likewise.
* ggc-common.c (struct ggc_usage): Likewise.
* mem-stats.h (struct mem_location): Likewise.
(struct mem_usage): Likewise.
* vec.c (struct vec_usage): Likewise.
From-SVN: r224082
Diffstat (limited to 'gcc/bitmap.h')
-rw-r--r-- | gcc/bitmap.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 4309f6d..1d37bca 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -144,7 +144,8 @@ struct bitmap_usage: public mem_usage m_nsearches (nsearches), m_search_iter (search_iter) {} /* Sum the usage with SECOND usage. */ - bitmap_usage operator+ (const bitmap_usage &second) + bitmap_usage + operator+ (const bitmap_usage &second) { return bitmap_usage (m_allocated + second.m_allocated, m_times + second.m_times, @@ -154,7 +155,8 @@ struct bitmap_usage: public mem_usage } /* Dump usage coupled to LOC location, where TOTAL is sum of all rows. */ - inline void dump (mem_location *loc, mem_usage &total) const + inline void + dump (mem_location *loc, mem_usage &total) const { char *location_string = loc->to_string (); @@ -170,7 +172,8 @@ struct bitmap_usage: public mem_usage } /* Dump header with NAME. */ - static inline void dump_header (const char *name) + static inline void + dump_header (const char *name) { fprintf (stderr, "%-48s %11s%16s%17s%12s%12s%10s\n", name, "Leak", "Peak", "Times", "N searches", "Search iter", "Type"); |