Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e479c8

Browse files
shihai1991vstinner
authored andcommitted
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
1 parent 43d564c commit 7e479c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/obmalloc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ static void _PyMem_SetupDebugHooksDomain(PyMemAllocatorDomain domain);
4545
# define _Py_NO_ADDRESS_SAFETY_ANALYSIS \
4646
__attribute__((no_address_safety_analysis))
4747
# endif
48-
// TSAN is supported since GCC 4.8, but __SANITIZE_THREAD__ macro
48+
// TSAN is supported since GCC 5.1, but __SANITIZE_THREAD__ macro
4949
// is provided only since GCC 7.
50-
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
50+
# if __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
5151
# define _Py_NO_SANITIZE_THREAD __attribute__((no_sanitize_thread))
5252
# endif
5353
#endif

0 commit comments

Comments
 (0)