aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-12-06 11:32:09 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-12-06 11:32:09 +0000
commit1c252ef3cbf964ce6022e5431de7f264a929a100 (patch)
tree9d8140a68c008e3bc89ef9eded4d916dcf77f927 /gcc/bitmap.c
parent98610dc5b630a8ee7f39ed48d45e58fb044dbec1 (diff)
bitmap.c (bitmap_head::crashme): Define.
2018-12-06 Richard Biener <rguenther@suse.de> * bitmap.c (bitmap_head::crashme): Define. * bitmap.h (bitmap_head): Add constexpr default constructor poisoning the obstack member. (bitmap_head::crashme): Declare. (bitmap_release): New function clearing a bitmap and poisoning the obstack member. * gengtype.c (main): Make it recognize CONSTEXPR. * lra-constraints.c (lra_inheritance): Use bitmap_release instead of bitmap_clear. * ira.c (ira): Work around class-memaccess warning. * regrename.c (create_new_chain): Likewise. From-SVN: r266850
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r--gcc/bitmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index 025594400f9..05525795c34 100644
--- a/gcc/bitmap.c
+++ b/gcc/bitmap.c
@@ -26,6 +26,10 @@ along with GCC; see the file COPYING3. If not see
/* Memory allocation statistics purpose instance. */
mem_alloc_description<bitmap_usage> bitmap_mem_desc;
+/* Static zero-initialized bitmap obstack used for default initialization
+ of bitmap_head. */
+bitmap_obstack bitmap_head::crashme;
+
static bitmap_element *bitmap_tree_listify_from (bitmap, bitmap_element *);
/* Register new bitmap. */