From: Tom Tromey Date: Thu, 13 Sep 2018 05:18:11 +0000 (-0600) Subject: Remove CPYCHECKER_RETURNS_BORROWED_REF X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94c8b7253a5e165ee92f7302f3247764d69b55e5;p=binutils-gdb.git Remove CPYCHECKER_RETURNS_BORROWED_REF CPYCHECKER_RETURNS_BORROWED_REF is not used, and I think should never be used. This patch removes it. gdb/ChangeLog 2018-09-16 Tom Tromey * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): Remove. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d4e2ca34351..d36f6cde426 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-09-16 Tom Tromey + + * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): + Remove. + 2018-09-16 Tom Tromey * python/python-internal.h (thread_to_thread_object): Change diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h index 0b42603dce6..dc42978c6cf 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) \