]> granicus.if.org Git - clang/commit
[OpenMP][Clang][BugFix] Split declares and math functions inclusion.
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 13 May 2019 22:11:44 +0000 (22:11 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Mon, 13 May 2019 22:11:44 +0000 (22:11 +0000)
commitd6065d4875d6e09eff366ca1e6aba1dd30f66023
tree846a1df8c6ad3ab18a4c03063f5c601461f7cbbb
parent25c95dd44697929df0cd07d2a6ec799a103f01cf
[OpenMP][Clang][BugFix] Split declares and math functions inclusion.

Summary: This patches fixes an issue in which the __clang_cuda_cmath.h header is being included even when cmath or math.h headers are not included.

Reviewers: jdoerfert, ABataev, hfinkel, caomhin, tra

Reviewed By: tra

Subscribers: tra, mgorny, guansong, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D61765

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360626 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
lib/Driver/ToolChains/Clang.cpp
lib/Headers/CMakeLists.txt
lib/Headers/__clang_cuda_cmath.h
lib/Headers/__clang_cuda_device_functions.h
lib/Headers/__clang_cuda_math_forward_declares.h
lib/Headers/openmp_wrappers/__clang_openmp_math.h
lib/Headers/openmp_wrappers/__clang_openmp_math_declares.h [new file with mode: 0644]
lib/Headers/openmp_wrappers/cmath
lib/Headers/openmp_wrappers/math.h
test/Headers/Inputs/include/cstdlib [new file with mode: 0644]
test/Headers/nvptx_device_cmath_functions.c
test/Headers/nvptx_device_cmath_functions.cpp
test/Headers/nvptx_device_math_functions.c
test/Headers/nvptx_device_math_functions.cpp