Remove CPYCHECKER_RETURNS_BORROWED_REF
authorTom Tromey <tom@tromey.com>
Thu, 13 Sep 2018 05:18:11 +0000 (23:18 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 16 Sep 2018 13:25:57 +0000 (07:25 -0600)
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  <tom@tromey.com>

* python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
Remove.

gdb/ChangeLog
gdb/python/python-internal.h

index d4e2ca34351e7495883f156a12f3452348de69a1..d36f6cde426e2c16e68f8af7980d31469efadeae 100644 (file)
@@ -1,3 +1,8 @@
+2018-09-16  Tom Tromey  <tom@tromey.com>
+
+       * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
+       Remove.
+
 2018-09-16  Tom Tromey  <tom@tromey.com>
 
        * python/python-internal.h (thread_to_thread_object): Change
index 0b42603dce6e4d721f4bac5fbdc68d25b7f178d5..dc42978c6cf61fb1ec962d8a32eafd3b65a26302 100644 (file)
    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)                \