[CUDA] Mark CUDA as a no-errno platform.
authorJustin Lebar <jlebar@google.com>
Fri, 3 Nov 2017 02:30:00 +0000 (02:30 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 3 Nov 2017 02:30:00 +0000 (02:30 +0000)
commit648f4cad528dbcc2acfa7a7f6a35106777a56c68
tree7f33184a0bae99273dd01c1cddf13b4ba7cbb14d
parente124612eda3561d10fa5749583e0fabf813e2c82
[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
clang/lib/Driver/ToolChains/Cuda.h