summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-05-25 10:17:51 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-05-25 10:17:51 +0900
commit06321ea26c186434e5b943a6739ffd6bd1eb06d9 (patch)
tree26305c4666dc5b171a53c8bcd15bf31d545256bb
parentc6c023317ce691e4e9a685a36554714330f2d3e1 (diff)
RBIMPL_ATTR_DEPRECATED: disable for GCC10
GCC 10.x seems buggy here. See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95302
-rw-r--r--include/ruby/internal/attr/deprecated.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/internal/attr/deprecated.h b/include/ruby/internal/attr/deprecated.h
index 0cdf12606a..38a7deeaaa 100644
--- a/include/ruby/internal/attr/deprecated.h
+++ b/include/ruby/internal/attr/deprecated.h
@@ -31,6 +31,10 @@
#if RBIMPL_HAS_EXTENSION(attribute_deprecated_with_message)
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
+#elif defined(__cplusplus) && RBIMPL_COMPILER_SINCE(GCC, 10, 1, 0) /* && RBIMPL_COMPILER_BEFORE(GCC, 10, X, Y) */
+# /* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95302 */
+# define RBIMPL_ATTR_DEPRECATED(msg) /* disable until they fix this bug */
+
#elif RBIMPL_COMPILER_SINCE(GCC, 4, 5, 0)
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))