* [Buildroot] [PATCH] php: fix bfin compile error
@ 2016-09-30 6:07 Waldemar Brodkorb
2016-09-30 8:21 ` Thomas Petazzoni
2016-10-07 13:42 ` Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: Waldemar Brodkorb @ 2016-09-30 6:07 UTC (permalink / raw)
To: buildroot
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
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCH] php: fix bfin compile error
2016-09-30 6:07 [Buildroot] [PATCH] php: fix bfin compile error Waldemar Brodkorb
@ 2016-09-30 8:21 ` Thomas Petazzoni
2016-10-07 13:41 ` Thomas Petazzoni
2016-10-07 13:42 ` Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-09-30 8:21 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 30 Sep 2016 08:07:02 +0200, Waldemar Brodkorb wrote:
> Avoid a gcc segfault with Os.
>
> Fixes:
> http://autobuild.buildroot.net/results/61532c31701c9bf756d85c639a00627667baa4fb
>
> Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Thanks, but could you please report a gcc bug upstream, and add the
reference to the bug report in the patch?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] php: fix bfin compile error
2016-09-30 6:07 [Buildroot] [PATCH] php: fix bfin compile error Waldemar Brodkorb
2016-09-30 8:21 ` Thomas Petazzoni
@ 2016-10-07 13:42 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-10-07 13:42 UTC (permalink / raw)
To: buildroot
Hello,
On Fri, 30 Sep 2016 08:07:02 +0200, Waldemar Brodkorb wrote:
> 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
Also patches need a description + Signed-off-by line.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-07 13:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-30 6:07 [Buildroot] [PATCH] php: fix bfin compile error Waldemar Brodkorb
2016-09-30 8:21 ` Thomas Petazzoni
2016-10-07 13:41 ` Thomas Petazzoni
2016-10-07 13:42 ` Thomas Petazzoni
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.