From c163347d17f14b6226b04dbbd0637f5f697c438b Mon Sep 17 00:00:00 2001 From: tbsaunde Date: Sat, 29 Jul 2017 01:39:31 +0000 Subject: simplify the bitmap alloc_stat functions with c++ gcc/fortran/ChangeLog: 2017-07-28 Trevor Saunders * resolve.c (find_reachable_labels): Adjust. gcc/ChangeLog: 2017-07-28 Trevor Saunders * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc. (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc. * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype. (bitmap_gc_alloc_stat): Likewise. (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250709 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/bitmap.c') diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 7bebeecca55..be8d0cc6247 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -273,7 +273,7 @@ bitmap_obstack_release (bitmap_obstack *bit_obstack) it on the default bitmap obstack. */ bitmap -bitmap_obstack_alloc_stat (bitmap_obstack *bit_obstack MEM_STAT_DECL) +bitmap_alloc (bitmap_obstack *bit_obstack MEM_STAT_DECL) { bitmap map; @@ -295,7 +295,7 @@ bitmap_obstack_alloc_stat (bitmap_obstack *bit_obstack MEM_STAT_DECL) /* Create a new GCd bitmap. */ bitmap -bitmap_gc_alloc_stat (ALONE_MEM_STAT_DECL) +bitmap_gc_alloc (ALONE_MEM_STAT_DECL) { bitmap map; -- cgit v1.2.1 From 076121e0259372b23c8c481bdd667bdc8f30408a Mon Sep 17 00:00:00 2001 From: tbsaunde Date: Sat, 29 Jul 2017 01:39:36 +0000 Subject: use c++ for bitmap_initialize gcc/ChangeLog: 2017-07-28 Trevor Saunders * bitmap.c (bitmap_alloc): Adjust. (bitmap_gc_alloc): Likewise. * bitmap.h (bitmap_initialize_stat): Remove _stat from name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250710 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/bitmap.c') diff --git a/gcc/bitmap.c b/gcc/bitmap.c index be8d0cc6247..03f6923db2f 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -284,7 +284,7 @@ bitmap_alloc (bitmap_obstack *bit_obstack MEM_STAT_DECL) bit_obstack->heads = (struct bitmap_head *) map->first; else map = XOBNEW (&bit_obstack->obstack, bitmap_head); - bitmap_initialize_stat (map, bit_obstack PASS_MEM_STAT); + bitmap_initialize (map, bit_obstack PASS_MEM_STAT); if (GATHER_STATISTICS) register_overhead (map, sizeof (bitmap_head)); @@ -300,7 +300,7 @@ bitmap_gc_alloc (ALONE_MEM_STAT_DECL) bitmap map; map = ggc_alloc (); - bitmap_initialize_stat (map, NULL PASS_MEM_STAT); + bitmap_initialize (map, NULL PASS_MEM_STAT); if (GATHER_STATISTICS) register_overhead (map, sizeof (bitmap_head)); -- cgit v1.2.1