Re: [PATCH 04/13] allow auto_bitmap to use other bitmap obstacks
On Tue, May 9, 2017 at 10:52 PM,wrote: > From: Trevor Saunders > > gcc/ChangeLog: Ok. > 2017-05-07 Trevor Saunders > > * bitmap.h (class auto_bitmap): New constructor taking > bitmap_obstack * argument. > --- > gcc/bitmap.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/gcc/bitmap.h b/gcc/bitmap.h > index 49aec001cb0..2ddeee6bc10 100644 > --- a/gcc/bitmap.h > +++ b/gcc/bitmap.h > @@ -824,6 +824,7 @@ class auto_bitmap > { > public: >auto_bitmap () { bitmap_initialize (_bits, _default_obstack); } > + explicit auto_bitmap (bitmap_obstack *o) { bitmap_initialize (_bits, o); > } >~auto_bitmap () { bitmap_clear (_bits); } >// Allow calling bitmap functions on our bitmap. >operator bitmap () { return _bits; } > -- > 2.11.0 >
[PATCH 04/13] allow auto_bitmap to use other bitmap obstacks
From: Trevor Saundersgcc/ChangeLog: 2017-05-07 Trevor Saunders * bitmap.h (class auto_bitmap): New constructor taking bitmap_obstack * argument. --- gcc/bitmap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/bitmap.h b/gcc/bitmap.h index 49aec001cb0..2ddeee6bc10 100644 --- a/gcc/bitmap.h +++ b/gcc/bitmap.h @@ -824,6 +824,7 @@ class auto_bitmap { public: auto_bitmap () { bitmap_initialize (_bits, _default_obstack); } + explicit auto_bitmap (bitmap_obstack *o) { bitmap_initialize (_bits, o); } ~auto_bitmap () { bitmap_clear (_bits); } // Allow calling bitmap functions on our bitmap. operator bitmap () { return _bits; } -- 2.11.0