]> code.ossystems Code Review - meta-freescale.git/commitdiff
e500v2: workaround for ICE of gcc-4.8.x
authorZhenhua Luo <zhenhua.luo@freescale.com>
Tue, 16 Jul 2013 10:14:29 +0000 (10:14 +0000)
committerZhenhua Luo <zhenhua.luo@freescale.com>
Wed, 17 Jul 2013 02:20:08 +0000 (10:20 +0800)
[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@freescale.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-ppc/conf/machine/e500v2.inc

index 96887845b566028a792fd8c1a435ba5b7a08eb3d..aabca6e2fd4727549ac24c61f6bea190d4d6fd99 100644 (file)
@@ -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"