python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / php / 0007-avoid-bfin-gcc-segfault.patch
blob4dccb25f1f9dc27ee8d53d299393bf5b67a7117b
1 Avoid gcc segmentation fault
3 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
5 diff -Nur php-7.0.12.orig/Zend/zend_portability.h php-7.0.12/Zend/zend_portability.h
6 --- php-7.0.12.orig/Zend/zend_portability.h 2016-10-13 16:04:17.000000000 +0200
7 +++ php-7.0.12/Zend/zend_portability.h 2016-11-08 02:49:39.118388999 +0100
8 @@ -97,7 +97,7 @@
10 #if defined(ZEND_WIN32) && !defined(__clang__)
11 # define ZEND_ASSUME(c) __assume(c)
12 -#elif ((defined(__GNUC__) && ZEND_GCC_VERSION >= 4005) || __has_builtin(__builtin_unreachable)) && PHP_HAVE_BUILTIN_EXPECT
13 +#elif ((defined(__GNUC__) && ZEND_GCC_VERSION >= 4005) || __has_builtin(__builtin_unreachable)) && PHP_HAVE_BUILTIN_EXPECT && !defined(__bfin__)
14 # define ZEND_ASSUME(c) do { \
15 if (__builtin_expect(!(c), 0)) __builtin_unreachable(); \
16 } while (0)