diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-05-25 10:17:51 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-05-25 10:17:51 +0900 |
commit | 06321ea26c186434e5b943a6739ffd6bd1eb06d9 (patch) | |
tree | 26305c4666dc5b171a53c8bcd15bf31d545256bb | |
parent | c6c023317ce691e4e9a685a36554714330f2d3e1 (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.h | 4 |
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)) |