diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2020-11-17 12:07:40 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2020-11-17 12:07:40 +0000 |
commit | f0c690018ad1fb4746da3aca26a443c0f96530fa (patch) | |
tree | a7e4ff0995205d3beb32e151763b04f076ddca0a /llvm/lib/Support/PrettyStackTrace.cpp | |
parent | 6795984a47dfd2da4f451ad86a99021d6c9f85b5 (diff) | |
download | llvm-f0c690018ad1fb4746da3aca26a443c0f96530fa.zip llvm-f0c690018ad1fb4746da3aca26a443c0f96530fa.tar.gz llvm-f0c690018ad1fb4746da3aca26a443c0f96530fa.tar.bz2 |
[OpenCL] Stop opencl-c-base.h leaking extension enabling
opencl-c.h disables all extensions at its end, but opencl-c-base.h
does not, and that causes any inclusion of only opencl-c-base.h to
leave some extensions (such as cl_khr_fp16) enabled. This affects the
-fdeclare-opencl-builtins option for example.
This violates the OpenCL Extension Specification which specifies that
"The initial state of the compiler is as if the directive #pragma
OPENCL EXTENSION all : disable was issued".
Fix by disabling all extensions at the end of opencl-c-base.h and
enable extensions inside opencl.h which relied on opencl-c-base.h
enabling the cl_khr_fp16/64 extensions.
Differential Revision: https://reviews.llvm.org/D91429
Diffstat (limited to 'llvm/lib/Support/PrettyStackTrace.cpp')
0 files changed, 0 insertions, 0 deletions