Message ID | 1510973563-10046-5-git-send-email-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-return-467251-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 (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-467251-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="GuTOmerF"; 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 3ydzyX5RPJz9s72 for <incoming@patchwork.ozlabs.org>; Sat, 18 Nov 2017 13:51:32 +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; q=dns; s= default; b=Wa2E6mE+XEyIBeg7J1tR/k4m2WQv0RaEU4nVhZLwp0wIRpcyAuNHE PJRCtxVIsOBf4dlCKYYBPD2LAyrqKcKqjDEJCJ2sLwSUxpinW7RXS+KE3+4tjTqF trI1auUmvh4iGpXwXuMX+/xM7/6nTnA7/39sofblc+5rYZAX3S4YC4= 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; s= default; bh=he5dJopFvHY1/1jk9WSi28ckSro=; b=GuTOmerFoHez89mXJ/lt MIvgIj9zH6t3qOig3uwuDUqwgep0SIpZbIxiOqSN3YYBuEvVzF/Z7ccvWF+lOLuA stWFrPv2jsytZHQLU9QsxjXLgyEJEGxEV9qwskadu3qPfK5ER4GjWLPAXuillrcj i/BWBDL8Sp+qvMLbu1PJe8E= Received: (qmail 68351 invoked by alias); 18 Nov 2017 02:50:49 -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 68270 invoked by uid 89); 18 Nov 2017 02:50:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:588 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 18 Nov 2017 02:50:48 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EA2DF61BB4; Sat, 18 Nov 2017 02:50:46 +0000 (UTC) Received: from c64.redhat.com (ovpn-112-13.phx2.redhat.com [10.3.112.13]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6BD9B6A025; Sat, 18 Nov 2017 02:50:45 +0000 (UTC) From: David Malcolm <dmalcolm@redhat.com> To: Jason Merrill <jason@redhat.com> Cc: Nathan Sidwell <nathan@acm.org>, Jakub Jelinek <jakub@redhat.com>, Richard Biener <richard.guenther@gmail.com>, gcc-patches List <gcc-patches@gcc.gnu.org>, David Malcolm <dmalcolm@redhat.com> Subject: [PATCH 04/11] C++: add cp_expr::strip_any_location_wrapper method Date: Fri, 17 Nov 2017 21:52:36 -0500 Message-Id: <1510973563-10046-5-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1510973563-10046-1-git-send-email-dmalcolm@redhat.com> References: <1510350329-48956-1-git-send-email-dmalcolm@redhat.com> <1510973563-10046-1-git-send-email-dmalcolm@redhat.com> X-IsSubscribed: yes |
Series |
C++: locations for (almost) everything (PR 43486)
|
expand
|
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 63e9bff..f9c589d 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -95,6 +95,11 @@ public: cp_expr& maybe_add_location_wrapper (); + void strip_any_location_wrapper () + { + STRIP_ANY_LOCATION_WRAPPER (m_value); + } + private: tree m_value; location_t m_loc;