[cfe-commits] r106984 - /cfe/trunk/lib/Driver/Tools.cpp
Rafael Espindola
rafael.espindola at gmail.com
Sun Jun 27 11:29:21 PDT 2010
Author: rafael
Date: Sun Jun 27 13:29:21 2010
New Revision: 106984
URL: http://llvm.org/viewvc/llvm-project?rev=106984&view=rev
Log:
Use softfp for linux gnueabi, keep the warning for everything else.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=106984&r1=106983&r2=106984&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sun Jun 27 13:29:21 2010
@@ -431,8 +431,6 @@
// If unspecified, choose the default based on the platform.
if (FloatABI.empty()) {
- // FIXME: This is wrong for non-Darwin, we don't have a mechanism yet for
- // distinguishing things like linux-eabi vs linux-elf.
switch (getToolChain().getTriple().getOS()) {
case llvm::Triple::Darwin: {
// Darwin defaults to "softfp" for v6 and v7.
@@ -446,6 +444,15 @@
break;
}
+ case llvm::Triple::Linux: {
+ llvm::StringRef Env = getToolChain().getTriple().getEnvironmentName();
+ if (Env == "gnueabi") {
+ FloatABI = "softfp";
+ break;
+ }
+ }
+ // fall through
+
default:
// Assume "soft", but warn the user we are guessing.
FloatABI = "soft";
More information about the cfe-commits
mailing list