[meta-freescale] [meta-fsl-ppc][PATCH] e500v2: workaround for ICE of gcc-4.8.x

Zhenhua Luo zhenhua.luo at freescale.com
Tue Jul 16 03:14:29 PDT 2013


[Issue]
ICE appears when passing -mfloat-gprs=double for e500v2 target build with
gcc-4.8.1, the bug url is: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717#c1

[Workaround]
Replace double-float with single-float for e500v2 build until the ICE is fixed

[TODO]
Revert the commit when the ICE bug is fixed.

Signed-off-by: Zhenhua Luo <zhenhua.luo at freescale.com>
---
 conf/machine/e500v2.inc |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/conf/machine/e500v2.inc b/conf/machine/e500v2.inc
index 9688784..aabca6e 100644
--- a/conf/machine/e500v2.inc
+++ b/conf/machine/e500v2.inc
@@ -3,6 +3,12 @@ require conf/machine/include/tune-ppce500v2.inc
 MACHINE_FEATURES = "kernel26 pci ext2 ext3 serial"
 MACHINE_EXTRA_RRECOMMENDS = "u-boot udev-extraconf"
 
+# FIXME
+# Workaround for ICE of gcc-4.8.x when passing -mfloat-gprs=double
+# Bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57717#c1
+# Replace double-float with single-float, revert the commit when above bug is fixed
+TUNE_CCARGS := "${@d.getVar('TUNE_CCARGS', True).replace('-mfloat-gprs=double', '-mfloat-gprs=single')}"
+
 PREFERRED_PROVIDER_virtual/kernel ?= "linux-qoriq-sdk"
 PREFERRED_VERSION_virtual/kernel ?= "3.0.34"
 PREFERRED_PROVIDER_linux-libc-headers ?= "linux-qoriq-sdk-headers"
-- 
1.7.9.5





More information about the meta-freescale mailing list