com php-src: hash: murmur: Fix GCC support version for no_sanitize: ext/hash/murmur/endianness.h
| From: | Anatol Belski | Date: | Sun, 01 Nov 2020 20:47:39 +0000 |
| Subject: | com php-src: hash: murmur: Fix GCC support version for no_sanitize: ext/hash/murmur/endianness.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-114010@lists.php.net to get a copy of this message | ||
Commit: 0659d4459e5342d6f4575be5b08ac54efca9e41c
Author: Anatol Belski <ab@php.net> Sun, 1 Nov 2020 21:46:36 +0100
Parents: 58e71efe7c88cb1662c600123172168e50ff8d2b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0659d4459e5342d6f4575be5b08ac54efca9e41c
Log:
hash: murmur: Fix GCC support version for no_sanitize
While AddressSanitizer is supported as of 4.8, the no_sanitize attribute
appears in 8.0.
Signed-off-by: Anatol Belski <ab@php.net>
Changed paths:
M ext/hash/murmur/endianness.h
Diff:
diff --git a/ext/hash/murmur/endianness.h b/ext/hash/murmur/endianness.h
index fd971a383ab..3dbb2e6a3d7 100644
--- a/ext/hash/murmur/endianness.h
+++ b/ext/hash/murmur/endianness.h
@@ -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