summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorJacob Baungard Hansen <jacob.hansen@esa.int>2016-05-24 08:30:08 +0000
committerJacob Baungard Hansen <jacob.hansen@esa.int>2016-05-24 08:30:08 +0000
commit13a49374048c0d9e1600cda96f181d07ce732042 (patch)
treeecaaca4d1e0ea7a5dd7e15906638e3cd9640314b /clang/lib/Basic/Targets.cpp
parent14000b3cea6b3a44a19b9c80c550d7a2c24b3d31 (diff)
downloadbcm5719-llvm-13a49374048c0d9e1600cda96f181d07ce732042.tar.gz
bcm5719-llvm-13a49374048c0d9e1600cda96f181d07ce732042.zip
[Sparc] Add software float option -msoft-float
Summary: Following patch D19265 which enable software floating point support in the Sparc backend, this patch enables the option to be enabled in the front-end using the -msoft-float option. The user should ensure a library (such as the builtins from Compiler-RT) that includes the software floating point routines is provided. Reviewers: jyknight, lero_chris Subscribers: jyknight, cfe-commits Differential Revision: http://reviews.llvm.org/D20419 llvm-svn: 270538
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
-rw-r--r--clang/lib/Basic/Targets.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp
index cd9c51adab9..4d06ebb724b 100644
--- a/clang/lib/Basic/Targets.cpp
+++ b/clang/lib/Basic/Targets.cpp
@@ -6333,12 +6333,10 @@ public:
bool handleTargetFeatures(std::vector<std::string> &Features,
DiagnosticsEngine &Diags) override {
- // The backend doesn't actually handle soft float yet, but in case someone
- // is using the support for the front end continue to support it.
+ // Check if software floating point is enabled
auto Feature = std::find(Features.begin(), Features.end(), "+soft-float");
if (Feature != Features.end()) {
SoftFloat = true;
- Features.erase(Feature);
}
return true;
}
OpenPOWER on IntegriCloud