diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-04 14:01:56 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-26 20:45:12 +0900 |
commit | 1a80d7bcdaa9a57f0feaf0a14ced8c9fb442d25d (patch) | |
tree | b4832c88d3bc20cced2dd72148469b272169547e /internal/compilers.h | |
parent | 797c46917e6a2f9faacba369b09132ddd3cc61cd (diff) |
internal/string.h rework
Reduced the number of macros defined in the file. Also made it explicit
for MJIT_FUNC_EXPORTTED functions to be so.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2711
Diffstat (limited to 'internal/compilers.h')
-rw-r--r-- | internal/compilers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/compilers.h b/internal/compilers.h index 0f470937c5..2b1189a670 100644 --- a/internal/compilers.h +++ b/internal/compilers.h @@ -92,6 +92,7 @@ # define __has_builtin____builtin_clz GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_clzl GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_clzll GCC_VERSION_SINCE(3, 6, 0) +# define __has_builtin____builtin_constant_p GCC_VERSION_SINCE(2,95, 3) # define __has_builtin____builtin_ctz GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_ctzl GCC_VERSION_SINCE(3, 6, 0) # define __has_builtin____builtin_ctzll GCC_VERSION_SINCE(3, 6, 0) @@ -130,6 +131,10 @@ # undef __has_builtin____builtin_clzll # define __has_builtin____builtin_clzll HAVE_BUILTIN____BUILTIN_CLZLL # endif +# ifdef HAVE_BUILTIN____BUILTIN_CONSTANT_P +# undef __has_builtin____builtin_constant_p +# define __has_builtin____builtin_constant_p HAVE_BUILTIN____BUILTIN_CONSTANT_P +# endif # ifdef HAVE_BUILTIN____BUILTIN_CTZ # undef __has_builtin____builtin_ctz # define __has_builtin____builtin_ctz HAVE_BUILTIN____BUILTIN_CTZ |