]> granicus.if.org Git - clang/commit
[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)
commit324e0a9695a1682b11e60f5c22024243fa2246d3
treee826656198dc74d43a9dcfbda4ffd12b870472f0
parent9982bd2e776ef22bd1662b4d5c77810ee025b7ba
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317297 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Cuda.h