git: 5a969a3459e4 - main - cdefs.h: Move to more regular _Thread_local define
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jun 2024 15:52:49 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=5a969a3459e49efaf2ca1dc1d99895ddf04a5d02
commit 5a969a3459e49efaf2ca1dc1d99895ddf04a5d02
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-06-21 15:48:48 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-06-21 15:53:07 +0000
cdefs.h: Move to more regular _Thread_local define
Move to trusting C++ environment for thread local storage designation.
Noticed by: brooks
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D45663
---
sys/sys/cdefs.h | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/sys/sys/cdefs.h b/sys/sys/cdefs.h
index 419fc260f200..8809240ebbf3 100644
--- a/sys/sys/cdefs.h
+++ b/sys/sys/cdefs.h
@@ -213,12 +213,7 @@
#endif
#if !__has_extension(c_thread_local)
-/*
- * XXX: Some compilers (Clang 3.3, GCC 4.7) falsely announce C++11 mode
- * without actually supporting the thread_local keyword. Don't check for
- * the presence of C++11 when defining _Thread_local.
- */
-#if /* (defined(__cplusplus) && __cplusplus >= 201103L) || */ \
+#if (defined(__cplusplus) && __cplusplus >= 201103L) ||
__has_extension(cxx_thread_local)
#define _Thread_local thread_local
#else