diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-08-14 03:08:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 03:08:46 -0700 |
commit | 364a1d3125af6c0ff0a4bd2c8afe70fd38f30456 (patch) | |
tree | 197a5664f9cf916ec1cfbda1e2ddd40a5502ea79 /Objects | |
parent | e7ec9e04c82be72aef621fdfba03f41cbd8599aa (diff) | |
download | cpython-git-364a1d3125af6c0ff0a4bd2c8afe70fd38f30456.tar.gz |
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
(cherry picked from commit 7e479c82218450255572e3f5fa1549dc283901ea)
Co-authored-by: Hai Shi <shihai1992@gmail.com>
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/obmalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index fc7bef6199..0501cb9920 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 |