]> granicus.if.org Git - php/commitdiff
Revoke the gcc only restriction
authorAnatol Belski <ab@php.net>
Thu, 25 Jan 2018 15:18:34 +0000 (16:18 +0100)
committerAnatol Belski <ab@php.net>
Thu, 25 Jan 2018 15:24:04 +0000 (16:24 +0100)
clang at least 5.0 supports GNU style attributes and intrinsic macros.
In general, compilers claiming this functionality should know, what
they do.

Zend/zend_portability.h

index 6901a75c434318f91d3901be0df4e7263c021273..89f3020a31a040c3cdef6cfaf19e641c2a5528ec 100644 (file)
@@ -514,11 +514,11 @@ static zend_always_inline double _zend_get_nan(void) /* {{{ */
 # endif
 #endif
 
-#if defined(__GNUC__) && defined(HAVE_FUNC_ATTRIBUTE_IFUNC) && defined(HAVE_FUNC_ATTRIBUTE_TARGET)
+#if defined(HAVE_FUNC_ATTRIBUTE_IFUNC) && defined(HAVE_FUNC_ATTRIBUTE_TARGET)
 # define ZEND_INTRIN_HAVE_IFUNC_TARGET 1
 #endif
 
-#if defined(__GNUC__) && defined(__SSE4_2__)
+#ifdef __SSE4_2__
 /* Instructions compiled directly. */
 # define ZEND_INTRIN_SSE4_2_NATIVE 1
 #elif (defined(__i386__) || defined(__x86_64__)) && defined(HAVE_NMMINTRIN_H) || defined(ZEND_WIN32)