aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-11-07 10:16:14 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-11-07 09:16:14 +0000
commit9cfc08c0491270417557f00998857722c405f0b3 (patch)
tree7412255fac84d24ae398a2637a3e5000c696071b
parent8fa1acc7caa5ef5786965234bdb83f8f7bc1c850 (diff)
downloadgcc-9cfc08c0491270417557f00998857722c405f0b3.zip
gcc-9cfc08c0491270417557f00998857722c405f0b3.tar.gz
gcc-9cfc08c0491270417557f00998857722c405f0b3.tar.bz2
Fix GNU coding style (V2).
2018-11-07 Martin Liska <mliska@suse.cz> * mem-stats.h: Fix GNU coding style. From-SVN: r265868
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/mem-stats.h22
2 files changed, 15 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 379c531..2588ce2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2018-11-07 Martin Liska <mliska@suse.cz>
+
+ * mem-stats.h: Fix GNU coding style.
+
2018-11-07 Chenghua Xu <paul.hua.gm@gmail.com>
* config/mips/gs264e.md: New.
diff --git a/gcc/mem-stats.h b/gcc/mem-stats.h
index 10b4165..6ab9221 100644
--- a/gcc/mem-stats.h
+++ b/gcc/mem-stats.h
@@ -316,23 +316,23 @@ public:
bool contains_descriptor_for_instance (const void *ptr);
/* Return descriptor for instance PTR. */
- T * get_descriptor_for_instance (const void *ptr);
+ T *get_descriptor_for_instance (const void *ptr);
/* Register memory allocation descriptor for container PTR which is
described by a memory LOCATION. */
- T * register_descriptor (const void *ptr, mem_location *location);
+ T *register_descriptor (const void *ptr, mem_location *location);
/* Register memory allocation descriptor for container PTR. ORIGIN identifies
type of container and GGC identifes if the allocation is handled in GGC
memory. Each location is identified by file NAME, LINE in source code and
FUNCTION name. */
- T * register_descriptor (const void *ptr, mem_alloc_origin origin,
- bool ggc, const char *name, int line,
- const char *function);
+ T *register_descriptor (const void *ptr, mem_alloc_origin origin,
+ bool ggc, const char *name, int line,
+ const char *function);
/* Register instance overhead identified by PTR pointer. Allocation takes
SIZE bytes. */
- T * register_instance_overhead (size_t size, const void *ptr);
+ T *register_instance_overhead (size_t size, const void *ptr);
/* For containers (and GGC) where we want to track every instance object,
we register allocation of SIZE bytes, identified by PTR pointer, belonging
@@ -342,8 +342,8 @@ public:
/* Release PTR pointer of SIZE bytes. If REMOVE_FROM_MAP is set to true,
remove the instance from reverse map. Return memory usage that belongs
to this memory description. */
- T * release_instance_overhead (void *ptr, size_t size,
- bool remove_from_map = false);
+ T *release_instance_overhead (void *ptr, size_t size,
+ bool remove_from_map = false);
/* Release intance object identified by PTR pointer. */
void release_object_overhead (void *ptr);
@@ -355,9 +355,9 @@ public:
are filtered by ORIGIN type, LENGTH is return value where we register
the number of elements in the list. If we want to process custom order,
CMP comparator can be provided. */
- mem_list_t * get_list (mem_alloc_origin origin, unsigned *length,
- int (*cmp) (const void *first,
- const void *second) = NULL);
+ mem_list_t *get_list (mem_alloc_origin origin, unsigned *length,
+ int (*cmp) (const void *first,
+ const void *second) = NULL);
/* Dump all tracked instances of type ORIGIN. If we want to process custom
order, CMP comparator can be provided. */