php: fix bfin compile error
PATCH 1/1 php: fix bfin compile error
Avoid a gcc segfault with Os.
Fixes:
http://autobuild.buildroot.net/results/61532c31701c9bf756d85c639a00627667baa4fb
--- package/php/0008-fix-bfin-gcc-segfault.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/php/0008-fix-bfin-gcc-segfault.patch
package/php/0008-fix-bfin-gcc-segfault.patch new file +19 -0
@@ -0,0 +1,19 @@ +diff -Nur php-7.0.11.orig/Zend/zend_compile.c php-7.0.11/Zend/zend_compile.c +--- php-7.0.11.orig/Zend/zend_compile.c 2016-09-13 20:52:26.000000000 +0200 ++++ php-7.0.11/Zend/zend_compile.c 2016-09-30 04:24:32.380877446 +0200 +@@ -6689,7 +6689,14 @@ + } + /* }}} */ + +-void zend_compile_resolve_class_name(znode *result, zend_ast *ast) /* {{{ */ ++// Blackfin gcc 6.2.0 fails with segmentation fault ++#if defined(__bfin__) ++#define disable_opt __attribute__ ((optimize("O2"))) ++#else ++#define disable_opt ++#endif ++ ++void disable_opt zend_compile_resolve_class_name(znode *result, zend_ast *ast) /* {{{ */ + { + zend_ast *name_ast = ast->child[0]; + uint32_t fetch_type = zend_get_class_fetch_type(zend_ast_get_str(name_ast));
Signature · 1 line
2.1.4
PATCH 1/1 php: fix bfin compile error
Hello,
Quoted 6 lines · Waldemar Brodkorb
Avoid a gcc segfault with Os.
Fixes:
http://autobuild.buildroot.net/results/61532c31701c9bf756d85c639a00627667baa4fbSigned-off-by Waldemar Brodkorb <[email protected]>
Thanks, but could you please report a gcc bug upstream, and add the reference to the bug report in the patch?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 php: fix bfin compile error
Hello,
Quoted 7 lines · Thomas Petazzoni
Quoted 4 lines
Fixes:
http://autobuild.buildroot.net/results/61532c31701c9bf756d85c639a00627667baa4fbSigned-off-by Waldemar Brodkorb <[email protected]>Thanks, but could you please report a gcc bug upstream, and add the reference to the bug report in the patch?
Ping?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
PATCH 1/1 php: fix bfin compile error
In reply to Waldemar BrodkorbHello,
package/php/0008-fix-bfin-gcc-segfault.patch line 3
Quoted 9 lines · Waldemar Brodkorb
package/php/0008-fix-bfin-gcc-segfault.patch new file +3
-0@@ -0,0 +1,19 @@ +diff -Nur php-7.0.11.orig/Zend/zend_compile.c php-7.0.11/Zend/zend_compile.c +--- php-7.0.11.orig/Zend/zend_compile.c 2016-09-13 20:52:26.000000000 +0200 ++++ php-7.0.11/Zend/zend_compile.c 2016-09-30 04:24:32.380877446 +0200
Also patches need a description + Signed-off-by line.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com