Skip to content
Snippets Groups Projects
Commit 5122cbe7 authored by Petr Hosek's avatar Petr Hosek
Browse files

[Driver] Fuchsia defaults to -fno-math-errno

Patch by Roland McGrath

Differential Revision: https://reviews.llvm.org/D35747

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308855 91177308-0d34-0410-b5e6-96231b3b80d8
parent 806f85a1
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,7 @@ public: ...@@ -42,6 +42,7 @@ public:
bool HasNativeLLVMSupport() const override { return true; } bool HasNativeLLVMSupport() const override { return true; }
bool IsIntegratedAssemblerDefault() const override { return true; } bool IsIntegratedAssemblerDefault() const override { return true; }
bool IsMathErrnoDefault() const override { return false; }
RuntimeLibType GetDefaultRuntimeLibType() const override { RuntimeLibType GetDefaultRuntimeLibType() const override {
return ToolChain::RLT_CompilerRT; return ToolChain::RLT_CompilerRT;
} }
......
...@@ -93,6 +93,8 @@ ...@@ -93,6 +93,8 @@
// RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s // RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s
// RUN: %clang -### -target x86_64-unknown-dragonfly -c %s 2>&1 \ // RUN: %clang -### -target x86_64-unknown-dragonfly -c %s 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s // RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s
// RUN: %clang -### -target x86_64-fuchsia -c %s 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NO-MATH-ERRNO %s
// //
// Check that -ffast-math disables -fmath-errno, and -fno-fast-math merely // Check that -ffast-math disables -fmath-errno, and -fno-fast-math merely
// preserves the target default. Also check various flag set operations between // preserves the target default. Also check various flag set operations between
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment