[PATCH 04/13] allow auto_bitmap to use other bitmap obstacks
Richard Biener
richard.guenther@gmail.com
Wed May 10 08:27:00 GMT 2017
On Tue, May 9, 2017 at 10:52 PM, <tbsaunde+gcc@tbsaunde.org> wrote:
> From: Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> gcc/ChangeLog:
Ok.
> 2017-05-07 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
>
> * 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 (&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; }
> --
> 2.11.0
>
More information about the Gcc-patches
mailing list