From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119123 invoked by alias); 9 May 2017 20:53:07 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 119029 invoked by uid 89); 9 May 2017 20:53:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_FAIL autolearn=ham version=3.3.2 spammy=our X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 09 May 2017 20:53:04 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8C7x-0003Eg-AS for gcc-patches@gcc.gnu.org; Tue, 09 May 2017 16:53:06 -0400 Received: from tbsaunde.org ([66.228.47.254]:57984 helo=paperclip.tbsaunde.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8C7x-0003Cb-6n for gcc-patches@gcc.gnu.org; Tue, 09 May 2017 16:53:01 -0400 Received: from keg.corp.tor1.mozilla.com (unknown [IPv6:2620:101:80f2:224:56ee:75ff:fe52:afb9]) by paperclip.tbsaunde.org (Postfix) with ESMTPSA id A1F62C378 for ; Tue, 9 May 2017 20:52:59 +0000 (UTC) From: tbsaunde+gcc@tbsaunde.org To: gcc-patches@gcc.gnu.org Subject: [PATCH 04/13] allow auto_bitmap to use other bitmap obstacks Date: Tue, 09 May 2017 20:53:00 -0000 Message-Id: <20170509205242.2237-5-tbsaunde+gcc@tbsaunde.org> In-Reply-To: <20170509205242.2237-1-tbsaunde+gcc@tbsaunde.org> References: <20170509205242.2237-1-tbsaunde+gcc@tbsaunde.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.228.47.254 X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00720.txt.bz2 From: Trevor Saunders gcc/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 (&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