]> granicus.if.org Git - php/commitdiff
hash: murmur: Fix GCC support version for no_sanitize
authorAnatol Belski <ab@php.net>
Sun, 1 Nov 2020 20:46:36 +0000 (21:46 +0100)
committerAnatol Belski <ab@php.net>
Sun, 1 Nov 2020 20:47:39 +0000 (21:47 +0100)
While AddressSanitizer is supported as of 4.8, the no_sanitize attribute
appears in 8.0.

Signed-off-by: Anatol Belski <ab@php.net>
ext/hash/murmur/endianness.h

index fd971a383ab859dae176ee5a839115f2f6d7e968..3dbb2e6a3d79703eb5caea26aeb1089a86a4280e 100644 (file)
@@ -55,7 +55,7 @@ FORCE_INLINE uint64_t BSWAP64(uint64_t u)
 }
 #endif
 
-#if defined(__clang__) || defined(__GNUC__) && ( __GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 8)
+#if defined(__clang__) || defined(__GNUC__) &&  __GNUC__ >= 8
 # define NO_SANITIZE_ALIGNMENT __attribute__((no_sanitize("alignment")))
 #else
 # define NO_SANITIZE_ALIGNMENT