diff options
author | Justin Lebar <jlebar@google.com> | 2017-11-03 02:30:00 +0000 |
---|---|---|
committer | Justin Lebar <jlebar@google.com> | 2017-11-03 02:30:00 +0000 |
commit | 648f4cad528dbcc2acfa7a7f6a35106777a56c68 (patch) | |
tree | 7f33184a0bae99273dd01c1cddf13b4ba7cbb14d /clang/lib/Driver/ToolChains/Cuda.h | |
parent | e124612eda3561d10fa5749583e0fabf813e2c82 (diff) | |
download | bcm5719-llvm-648f4cad528dbcc2acfa7a7f6a35106777a56c68.tar.gz bcm5719-llvm-648f4cad528dbcc2acfa7a7f6a35106777a56c68.zip |
[CUDA] Mark CUDA as a no-errno platform.
Summary:
CUDA doesn't support errno at all, so this is the right thing -- or at
least, in the right direction.
But also, this unbreaks the CUDA test-suite math tests [0] after D39481.
__cuda_cmath.h forwards nexttoward() to __builtin_nexttoward, which,
after that patch, was lowering to a libcall that doesn't exist in NVPTX.
[0] http://lab.llvm.org:8011/builders/clang-cuda-build/builds/14999
Reviewers: tra
Subscribers: sanjoy, cfe-commits
Differential Revision: https://reviews.llvm.org/D39586
llvm-svn: 317297
Diffstat (limited to 'clang/lib/Driver/ToolChains/Cuda.h')
-rw-r--r-- | clang/lib/Driver/ToolChains/Cuda.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Cuda.h b/clang/lib/Driver/ToolChains/Cuda.h index 414c9445c79..3101cb3ab7c 100644 --- a/clang/lib/Driver/ToolChains/Cuda.h +++ b/clang/lib/Driver/ToolChains/Cuda.h @@ -157,6 +157,7 @@ public: bool isPICDefaultForced() const override { return false; } bool SupportsProfiling() const override { return false; } bool SupportsObjCGC() const override { return false; } + bool IsMathErrnoDefault() const override { return false; } void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const override; |