diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-03 14:49:13 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-06-03 14:49:13 +0000 |
commit | 94302dfa934c612eccbc19359cd825bd52c21aa6 (patch) | |
tree | 6099942cfb1d37ffb58443756cd0f685b1cfd9f8 /gcc/alloc-pool.h | |
parent | f29929b504428aa8bf6c476c67a98169b8985d60 (diff) | |
download | gcc-94302dfa934c612eccbc19359cd825bd52c21aa6.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@224082 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/alloc-pool.h')
-rw-r--r-- | gcc/alloc-pool.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/gcc/alloc-pool.h b/gcc/alloc-pool.h index b10cfa413b8..ed0cb6d3242 100644 --- a/gcc/alloc-pool.h +++ b/gcc/alloc-pool.h @@ -40,7 +40,8 @@ struct pool_usage: public mem_usage m_pool_name (pool_name) {} /* Sum the usage with SECOND usage. */ - pool_usage operator+ (const pool_usage &second) + pool_usage + operator+ (const pool_usage &second) { return pool_usage (m_allocated + second.m_allocated, m_times + second.m_times, @@ -50,7 +51,8 @@ struct pool_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 (); @@ -65,7 +67,8 @@ struct pool_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, "%-32s%-48s %6s%11s%16s%17s%12s\n", "Pool name", name, "Pools", "Leak", "Peak", "Times", "Elt size"); @@ -73,7 +76,8 @@ struct pool_usage: public mem_usage } /* Dump footer. */ - inline void dump_footer () + inline void + dump_footer () { print_dash_line (); fprintf (stderr, "%s%82li%10li\n", "Total", (long)m_instances, @@ -133,21 +137,24 @@ private: int64_t align_i; } u; - static inline allocation_object<U> *get_instance (void *data_ptr) + static inline allocation_object<U> * + get_instance (void *data_ptr) { return (allocation_object<U> *)(((char *)(data_ptr)) - offsetof (allocation_object<U>, u.data)); } - static inline U *get_data (void *instance_ptr) + static inline U * + get_data (void *instance_ptr) { return (U*)(((allocation_object<U> *) instance_ptr)->u.data); } }; /* Align X to 8. */ - size_t align_eight (size_t x) + size_t + align_eight (size_t x) { return (((x+7) >> 3) << 3); } |