mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Attempt to fix build with gcc-4.8
This commit is contained in:
parent
966923f4be
commit
12ee810960
1 changed files with 6 additions and 1 deletions
|
@ -538,7 +538,12 @@ static zend_always_inline double _zend_get_nan(void) /* {{{ */
|
|||
# define PHP_HAVE_SSE4_2
|
||||
# endif
|
||||
|
||||
# if PHP_HAVE_AVX2_INSTRUCTIONS && defined(HAVE_IMMINTRIN_H)
|
||||
/*
|
||||
* AVX2 support was added in gcc 4.7, but AVX2 intrinsics don't work in
|
||||
* __attribute__((target("avx2"))) functions until gcc 4.9.
|
||||
*/
|
||||
# if PHP_HAVE_AVX2_INSTRUCTIONS && defined(HAVE_IMMINTRIN_H) && \
|
||||
(defined(__llvm__) || defined(__clang__) || (defined(__GNUC__) && ZEND_GCC_VERSION >= 4009))
|
||||
# define PHP_HAVE_AVX2
|
||||
# endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue