From: Trevor Saunders Date: Sun, 14 May 2017 00:38:29 +0000 (+0000) Subject: allow auto_bitmap to use other bitmap obstacks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b5c84f497a052cdba704492d4a4a46e21264779;p=gcc.git allow auto_bitmap to use other bitmap obstacks gcc/ChangeLog: 2017-05-13 Trevor Saunders * bitmap.h (class auto_bitmap): New constructor taking bitmap_obstack * argument. From-SVN: r248018 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1edc553523f..9cc3d518d17 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-13 Trevor Saunders + + * bitmap.h (class auto_bitmap): New constructor taking + bitmap_obstack * argument. + 2017-05-13 Trevor Saunders * bitmap.h (class auto_bitmap): Change type of m_bits to diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 99a95444583..ad5398409d6 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -807,6 +807,7 @@ class auto_bitmap { public: auto_bitmap () { bitmap_initialize (&m_bits, &bitmap_default_obstack); } + explicit auto_bitmap (bitmap_obstack *o) { bitmap_initialize (&m_bits, o); } ~auto_bitmap () { bitmap_clear (&m_bits); } // Allow calling bitmap functions on our bitmap. operator bitmap () { return &m_bits; }