Skip to content

Commit 15b6d0a

Browse files
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 7e479c8) Co-authored-by: Hai Shi <[email protected]>
1 parent fbb0c03 commit 15b6d0a

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
@@ -44,9 +44,9 @@ static void _PyMem_SetupDebugHooksDomain(PyMemAllocatorDomain domain);
4444
# define _Py_NO_ADDRESS_SAFETY_ANALYSIS \
4545
__attribute__((no_address_safety_analysis))
4646
# endif
47-
// TSAN is supported since GCC 4.8, but __SANITIZE_THREAD__ macro
47+
// TSAN is supported since GCC 5.1, but __SANITIZE_THREAD__ macro
4848
// is provided only since GCC 7.
49-
# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8)
49+
# if __GNUC__ > 5 || (__GNUC__ == 5 && __GNUC_MINOR__ >= 1)
5050
# define _Py_NO_SANITIZE_THREAD __attribute__((no_sanitize_thread))
5151
# endif
5252
#endif

0 commit comments

Comments
 (0)