From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] php: fix bfin compile error
Date: Fri, 30 Sep 2016 08:07:02 +0200 [thread overview]
Message-ID: <20160930060702.GA30641@waldemar-brodkorb.de> (raw)
Avoid a gcc segfault with Os.
Fixes:
http://autobuild.buildroot.net/results/61532c31701c9bf756d85c639a00627667baa4fb
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
---
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
diff --git a/package/php/0008-fix-bfin-gcc-segfault.patch b/package/php/0008-fix-bfin-gcc-segfault.patch
new file mode 100644
index 0000000..7ff7ed6
--- /dev/null
+++ b/package/php/0008-fix-bfin-gcc-segfault.patch
@@ -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));
--
2.1.4
next reply other threads:[~2016-09-30 6:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-30 6:07 Waldemar Brodkorb [this message]
2016-09-30 8:21 ` [Buildroot] [PATCH] php: fix bfin compile error Thomas Petazzoni
2016-10-07 13:41 ` Thomas Petazzoni
2016-10-07 13:42 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160930060702.GA30641@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.