]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/php/0006-avoid-bfin-gcc-segfault.patch
wayland: remove Blackfin patch
[coffee/buildroot.git] / package / php / 0006-avoid-bfin-gcc-segfault.patch
1 Avoid gcc segmentation fault
2
3 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
4 Signed-off-by: Adam Duskett <aduskett@gmail.com>
5 [aduskett@gmail.com: Update for 7.2.2]
6 diff -Nur php-7.0.12.orig/Zend/zend_portability.h php-7.0.12/Zend/zend_portability.h
7 --- php-7.0.12.orig/Zend/zend_portability.h     2016-10-13 16:04:17.000000000 +0200
8 +++ php-7.0.12/Zend/zend_portability.h  2016-11-08 02:49:39.118388999 +0100
9 @@ -95,7 +95,7 @@
10  
11  #if defined(ZEND_WIN32) && !defined(__clang__)
12  # define ZEND_ASSUME(c)        __assume(c)
13 -#elif ((defined(__GNUC__) && ZEND_GCC_VERSION >= 4005) || __has_builtin(__builtin_unreachable)) && PHP_HAVE_BUILTIN_EXPECT
14 +#elif ((defined(__GNUC__) && ZEND_GCC_VERSION >= 4005) || __has_builtin(__builtin_unreachable)) && PHP_HAVE_BUILTIN_EXPECT && !defined(__bfin__)
15  # define ZEND_ASSUME(c)        do { \
16                 if (__builtin_expect(!(c), 0)) __builtin_unreachable(); \
17         } while (0)