[CUDA] Tweak math forward declares so we're compatible with libstdc++4.9.
authorJustin Lebar <jlebar@google.com>
Thu, 7 Apr 2016 23:55:53 +0000 (23:55 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 7 Apr 2016 23:55:53 +0000 (23:55 +0000)
commit25c36fd61bbbc85632273d91ecb473fd4c472d0f
tree1a333bd5df0b45a19e68c0dacc7bfee94c886363
parent6c8b0c1b96759ba4b6f405d72f9529deb98ab819
[CUDA] Tweak math forward declares so we're compatible with libstdc++4.9.

Summary:
See comments in patch; we were assuming that some stdlib math functions
would be defined in namespace std, when in fact the spec says they
should be defined in the global namespace.  libstdc++4.9 became more
conforming and broke us.

This new implementation seems to cover the known knowns.

Reviewers: rsmith

Subscribers: cfe-commits, tra

Differential Revision: http://reviews.llvm.org/D18882

llvm-svn: 265751
clang/lib/Headers/__clang_cuda_cmath.h
clang/lib/Headers/__clang_cuda_math_forward_declares.h
clang/lib/Headers/__clang_cuda_runtime_wrapper.h