summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2019-08-14 04:50:19 -0500
committerVictor Stinner <vstinner@redhat.com>2019-08-14 11:50:19 +0200
commit7e479c82218450255572e3f5fa1549dc283901ea (patch)
treecf967b9194a0d49e76924bf1359cc6108a4650fc /Objects/obmalloc.c
parentbpo-37337: Fix a GCC 9 warning in Objects/descrobject.c (GH-14814) (diff)
downloadcpython-7e479c82218450255572e3f5fa1549dc283901ea.tar.gz
cpython-7e479c82218450255572e3f5fa1549dc283901ea.tar.bz2
cpython-7e479c82218450255572e3f5fa1549dc283901ea.zip
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
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 8d5c700d5c1..6ca7cd84eda 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