]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ArmPkg/ArmSoftfloatLib: restrict -fno-tree-vrp option to GCC46 and GCC47
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 15 Dec 2015 15:02:16 +0000 (15:02 +0000)
committerabiesheuvel <abiesheuvel@Edk2>
Tue, 15 Dec 2015 15:02:16 +0000 (15:02 +0000)
The -fno-tree-vrp option is not required for GCC 4.8 or later, and is not
supported by CLANG. So restrict its use to GCC 4.6 and 4.7, which are the
oldest versions we support for ARM.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19283 6f19259b-4bc3-4df7-8a09-765794883524

ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf

index 39c74bf1a3c248953c52f5bac407f9a7f841e25a..76fa0da903f5dc6e4f084583d61d73761e4ad14c 100644 (file)
@@ -45,5 +45,7 @@
   MdePkg/MdePkg.dec\r
 \r
 [BuildOptions]\r
-  GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-tree-vrp\r
+  GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare\r
+  *_GCC46_*_CC_FLAGS = -fno-tree-vrp\r
+  *_GCC47_*_CC_FLAGS = -fno-tree-vrp\r
   RVCT:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC\r