[cuda] Ignore "TLS unsupported by target" errors for host variables during device...
authorArtem Belevich <tra@google.com>
Mon, 27 Apr 2015 19:37:53 +0000 (19:37 +0000)
committerArtem Belevich <tra@google.com>
Mon, 27 Apr 2015 19:37:53 +0000 (19:37 +0000)
commitfa62ad40872b0d85f9b9a55f0b806c910edab257
treea84ff38123dfd0635d6cf3f876b2245558998be0
parent0eafe5df712a0394feb8d49d629dc8bace0f292d
[cuda] Ignore "TLS unsupported by target" errors for host variables during device compilation.

During device-side CUDA compilation clang currently complains about
all TLS variables, regardless of whether they are __host__ or
__device__.

This patch suppresses "TLS unsupported" errors for host variables
during device compilation and for device variables during host
compilation.

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

llvm-svn: 235907
clang/include/clang/Sema/SemaInternal.h
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaStmtAsm.cpp
clang/test/SemaCUDA/qualifiers.cu