From 8a89189003b7c2d9245c6dc179e131d81c5e78e4 Mon Sep 17 00:00:00 2001 From: Zhenhua Luo Date: Tue, 16 Jul 2013 10:14:29 +0000 Subject: [PATCH] e500v2: workaround for ICE of gcc-4.8.x [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 Acked-by: Otavio Salvador --- meta-fsl-ppc/conf/machine/e500v2.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-fsl-ppc/conf/machine/e500v2.inc b/meta-fsl-ppc/conf/machine/e500v2.inc index 96887845..aabca6e2 100644 --- a/meta-fsl-ppc/conf/machine/e500v2.inc +++ b/meta-fsl-ppc/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" -- 2.40.1