Message ID | 20200108090302.2425-4-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-return-516846-incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-516846-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="pd22dwam"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="QUEhCkyE"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47t3Gy3n20z9sNx for <incoming@patchwork.ozlabs.org>; Wed, 8 Jan 2020 20:04:58 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=eAUuFx+dPyI4NxTtp+DeP1qMCyPhnLSlT+NKHMOhQ4aTJyDUp3gLm GaUnf0oZoKTrc/T9IBZK8dncQi7nMZb4aiZG6J2/+U8ToOVLVmU2aYb64a1s16iX wRV+qvWj7YdHHTv19TLLXnvqDcInTvrEK3YPc6Df/X39et3glneIAA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=default; bh=kZoNcSVOP5ELF5yKgDvrVbxh5yk=; b=pd22dwamL+U2pUh7XnKJwK8ZUvAe ljvzmSxege0EZeydTAbMXxRmFXjNO0DC0l8NJU6/ctTwbwY2uGPFCoK7kX58WqOQ 3d0vxwtmcolN8cQKr9pWGG5/IS8x2ZgRhLz13xk82FssLoMIJMRpbXCDKHaSHDX7 bFdbVM3C5uWtibE= Received: (qmail 68637 invoked by alias); 8 Jan 2020 09:03:19 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-patches.gcc.gnu.org> List-Unsubscribe: <mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-help@gcc.gnu.org> Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 68600 invoked by uid 89); 8 Jan 2020 09:03:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=2956, our X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-1.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Jan 2020 09:03:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578474195; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZlV7Jc8XSXtnpgPz7Astitsi/PC1TU0xjqk3vZJgjE8=; b=QUEhCkyErA5STER3NgMEhmyUfEaavUlTBq5hPlCDKgNObxS46qyJi3MZ2Z0JNsl8XPKvM5 Yn9qNmwK9Z04vat9XZqhhr0XhZkj5QOReH4N02K5yyd/OrSObnWxdRYBhjm4WKq8TGmT38 aoLAJk4iOzvkBYg4IDEqmEzfz2a+fTM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-58-5ldE6l9FPGe7Xj2apCKa5g-1; Wed, 08 Jan 2020 04:03:09 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 632C2800D41 for <gcc-patches@gcc.gnu.org>; Wed, 8 Jan 2020 09:03:08 +0000 (UTC) Received: from t470.redhat.com (ovpn-117-41.phx2.redhat.com [10.3.117.41]) by smtp.corp.redhat.com (Postfix) with ESMTP id 00E1910013A7; Wed, 8 Jan 2020 09:03:07 +0000 (UTC) From: David Malcolm <dmalcolm@redhat.com> To: gcc-patches@gcc.gnu.org Cc: David Malcolm <dmalcolm@redhat.com> Subject: [PATCH 03/41] sbitmap.h: add operator const_sbitmap to auto_sbitmap Date: Wed, 8 Jan 2020 04:02:24 -0500 Message-Id: <20200108090302.2425-4-dmalcolm@redhat.com> In-Reply-To: <20200108090302.2425-1-dmalcolm@redhat.com> References: <20200108090302.2425-1-dmalcolm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes |
Series |
v5 of analyzer patch kit
|
expand
|
On Wed, 2020-01-08 at 04:02 -0500, David Malcolm wrote: > Needs review. (Used in one place by region-model.cc) > > Changed in v5: > - follow msebor's suggestion of using operator const_sbitmap > rather than operator const sbitmap&, as per: > https://gcc.gnu.org/ml/gcc-patches/2019-12/msg00224.html > > gcc/ChangeLog: > * sbitmap.h (auto_sbitmap): Add operator const_sbitmap. OK. jeff >
diff --git a/gcc/sbitmap.h b/gcc/sbitmap.h index e3f514f0ebf1..9c4215db29b0 100644 --- a/gcc/sbitmap.h +++ b/gcc/sbitmap.h @@ -295,6 +295,7 @@ public: /* Allow calling sbitmap functions on our bitmap. */ operator sbitmap () { return m_bitmap; } + operator const_sbitmap () const { return m_bitmap; } private: /* Prevent making a copy that refers to our sbitmap. */