diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-12-15 15:02:16 +0000 |
---|---|---|
committer | abiesheuvel <abiesheuvel@Edk2> | 2015-12-15 15:02:16 +0000 |
commit | 01627dba0911e1b9dbee56f69cca07ad98e022ba (patch) | |
tree | cf8954389b9c4efd7f082e82c8e68e58fa18e639 | |
parent | 6d2449c1f5fb7ff18faaa08a4ac6b38709ea1e30 (diff) | |
download | edk2-01627dba0911e1b9dbee56f69cca07ad98e022ba.zip edk2-01627dba0911e1b9dbee56f69cca07ad98e022ba.tar.gz edk2-01627dba0911e1b9dbee56f69cca07ad98e022ba.tar.bz2 |
ArmPkg/ArmSoftfloatLib: restrict -fno-tree-vrp option to GCC46 and GCC47
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
-rw-r--r-- | ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf index 39c74bf..76fa0da 100644 --- a/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf +++ b/ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf @@ -45,5 +45,7 @@ MdePkg/MdePkg.dec
[BuildOptions]
- GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare -fno-tree-vrp
+ GCC:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC -Wno-enum-compare
+ *_GCC46_*_CC_FLAGS = -fno-tree-vrp
+ *_GCC47_*_CC_FLAGS = -fno-tree-vrp
RVCT:*_*_*_CC_FLAGS = -DSOFTFLOAT_FOR_GCC
|