[OpenMP][bugfix] Fix issues with C++ 17 compilation when handling math functions
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Wed, 15 May 2019 20:18:21 +0000 (20:18 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Wed, 15 May 2019 20:18:21 +0000 (20:18 +0000)
commit7641f310d7b0e763e6df6060a672901e915a2a5a
tree5de8915541471d6ccb20337ac74ac62736d4220f
parentf6c645f9fd93190be479fff697cff9a45c208bbf
[OpenMP][bugfix] Fix issues with C++ 17 compilation when handling math functions

Summary: In OpenMP device offloading we must ensure that unde C++ 17, the inclusion of cstdlib will works correctly.

Reviewers: ABataev, tra, jdoerfert, hfinkel, caomhin

Reviewed By: jdoerfert

Subscribers: Hahnfeld, guansong, cfe-commits

Tags: #clang

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

llvm-svn: 360804
clang/lib/Headers/__clang_cuda_cmath.h
clang/lib/Headers/__clang_cuda_device_functions.h
clang/lib/Headers/__clang_cuda_math_forward_declares.h
clang/test/Headers/Inputs/include/cstdlib
clang/test/Headers/nvptx_device_cmath_functions_cxx17.cpp [new file with mode: 0644]
clang/test/Headers/nvptx_device_math_functions_cxx17.cpp [new file with mode: 0644]