mirror of
https://github.com/facebook/zstd.git
synced 2025-10-08 00:04:02 -04:00
Fix the build on GCC 4.x after 812e8f2a1
The ancient GCC 4.x doesn't understand the "optimize" attribute until 4.4. Fix the build on platforms with GCC 4.x < 4.4 by limiting the DONT_VECTORIZE definition to GCC 5 and greater. Noticed and patch proposed by Warner Losh <imp@FreeBSD.org>.
This commit is contained in:
parent
ff304e9e65
commit
ff6c81d90c
@ -128,7 +128,7 @@
|
||||
}
|
||||
|
||||
/* vectorization */
|
||||
#if !defined(__clang__) && defined(__GNUC__)
|
||||
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ >= 5
|
||||
# define DONT_VECTORIZE __attribute__((optimize("no-tree-vectorize")))
|
||||
#else
|
||||
# define DONT_VECTORIZE
|
||||
|
Loading…
x
Reference in New Issue
Block a user