diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-04-05 23:48:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-04-07 13:42:48 +0900 |
commit | f99af439805fe51b38aa1cf79f9c657f857510f4 () | |
tree | c7fb3f820a4031b16d820e474ecb5058d91f152f /thread_pthread.h | |
parent | cc0b8c47bfb108cb4ad6d5148669c9fac54b6ac4 (diff) |
[Bug#19161] Detect thread local storage specifier
Checking by `__STDC_VERSION__` is unreliable because old gcc 4.8 supports `-std=gnu11` option but does not implement `_Thread_local`. Check the implementation directly instead.
Notes: Merged: https://.com/ruby/ruby/pull/7669
-rw-r--r-- | thread_pthread.h | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -90,15 +90,6 @@ struct rb_thread_sched { int wait_yield; }; -#ifndef RB_THREAD_LOCAL_SPECIFIER_IS_UNSUPPORTED -# if __STDC_VERSION__ >= 201112 -# define RB_THREAD_LOCAL_SPECIFIER _Thread_local -# elif defined(__GNUC__) - /* note that ICC (linux) and Clang are covered by __GNUC__ */ -# define RB_THREAD_LOCAL_SPECIFIER __thread -# endif -#endif - RUBY_SYMBOL_EXPORT_BEGIN #ifdef RB_THREAD_LOCAL_SPECIFIER # ifdef __APPLE__ |