[Python-checkins] bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096)
Victor Stinner
webhook-mailer at python.org
Wed Aug 14 05:50:37 EDT 2019
https://github.com/python/cpython/commit/7e479c82218450255572e3f5fa1549dc283901ea
commit: 7e479c82218450255572e3f5fa1549dc283901ea
branch: master
author: Hai Shi <shihai1992 at gmail.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2019-08-14T11:50:19+02:00
summary:
bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096)
Fix the following warning with GCC 4.8.5:
Objects/obmalloc.c: warning: ‘no_sanitize_thread’ attribute directive ignored
files:
M Objects/obmalloc.c
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 8d5c700d5c1e..6ca7cd84eda8 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -45,9 +45,9 @@ static void _PyMem_SetupDebugHooksDomain(PyMemAllocatorDomain domain);
# define _Py_NO_ADDRESS_SAFETY_ANALYSIS \
__attribute__((no_address_safety_analysis))
# endif
- // TSAN is supported since GCC 4.8, but __SANITIZE_THREAD__ macro
+ // TSAN is supported since GCC 5.1, but __SANITIZE_THREAD__ macro
// is provided only since GCC 7.
-# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
+# if __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
# define _Py_NO_SANITIZE_THREAD __attribute__((no_sanitize_thread))
# endif
#endif
More information about the Python-checkins
mailing list