[PATCH] D61765: [OpenMP][Clang][BugFix] Split declares and math functions inclusion.

Gheorghe-Teodor Bercea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 9 15:33:56 PDT 2019


gtbercea created this revision.
gtbercea added reviewers: jdoerfert, ABataev, hfinkel, caomhin.
Herald added subscribers: cfe-commits, guansong, mgorny.
Herald added a project: clang.

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.


Repository:
  rC Clang

https://reviews.llvm.org/D61765

Files:
  lib/Driver/ToolChains/Clang.cpp
  lib/Headers/CMakeLists.txt
  lib/Headers/openmp_wrappers/__clang_openmp_math.h
  lib/Headers/openmp_wrappers/__clang_openmp_math_declares.h
  lib/Headers/openmp_wrappers/cmath
  lib/Headers/openmp_wrappers/math.h
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61765.198925.patch
Type: text/x-patch
Size: 8920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190509/4561a6f3/attachment-0001.bin>


More information about the cfe-commits mailing list