From patchwork Thu Sep 13 05:30:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 29361 Received: (qmail 15656 invoked by alias); 13 Sep 2018 05:30:55 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 14982 invoked by uid 89); 13 Sep 2018 05:30:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.144.98) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 13 Sep 2018 05:30:29 +0000 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 36141A5D1 for ; Thu, 13 Sep 2018 00:30:26 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id 0KCigdftnbXuJ0KCqgwZPE; Thu, 13 Sep 2018 00:30:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2LtBXPTVr+sFQE+D1nClpk0X53vLbwGyPNxxrcwVe6E=; b=UBIyQLX4krqFGAhpgNvGKFiTgX 3iulyy1S3epa2TNsuerNKNmFxRR8Mc854OZdkIRYZ8m1axJNGfPHjlAfyvX3nWuw3HPPcXc++4uQr L06ufmzbuWWdMCPtgQrzeqghB; Received: from 97-122-189-157.hlrn.qwest.net ([97.122.189.157]:54318 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1g0KCi-0045EG-AI; Thu, 13 Sep 2018 00:30:12 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH 4/4] Remove CPYCHECKER_RETURNS_BORROWED_REF Date: Wed, 12 Sep 2018 23:30:07 -0600 Message-Id: <20180913053007.11780-5-tom@tromey.com> In-Reply-To: <20180913053007.11780-1-tom@tromey.com> References: <20180913053007.11780-1-tom@tromey.com> CPYCHECKER_RETURNS_BORROWED_REF is not used, and I think should never be used. This patch removes it. gdb/ChangeLog 2018-09-12 Tom Tromey * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): Remove. --- gdb/ChangeLog | 5 +++++ gdb/python/python-internal.h | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index dc8d7cdd32a..59e20238856 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -27,14 +27,9 @@ comes with the Python plugin for GCC. See: https://gcc-python-plugin.readthedocs.org/en/latest/cpychecker.html The checker defines a WITH_ macro for each attribute it - exposes. */ - -#ifdef WITH_CPYCHECKER_RETURNS_BORROWED_REF_ATTRIBUTE -#define CPYCHECKER_RETURNS_BORROWED_REF \ - __attribute__ ((cpychecker_returns_borrowed_ref)) -#else -#define CPYCHECKER_RETURNS_BORROWED_REF -#endif + exposes. Note that we intentionally do not use + 'cpychecker_returns_borrowed_ref' -- that idiom is forbidden in + gdb. */ #ifdef WITH_CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF_ATTRIBUTE #define CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF(ARG) \