]> granicus.if.org Git - clang/commit
[OpenCL] Disable C99 standard lib functions
authorAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 12 Feb 2016 12:07:04 +0000 (12:07 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 12 Feb 2016 12:07:04 +0000 (12:07 +0000)
commit87f6500b32c60af0cd0df453ead0ad8a884ece09
tree63afea6a3e7b000ca38d597450d25cbd3e1eebfb
parent1b363a46f7845c67019f432f429f96cf64a99f4e
[OpenCL] Disable C99 standard lib functions

The library functions defined in the C99 standard headers
are not available (OpenCL v1.2 s6.9.f).

This change stops treating OpenCL builtin functions as standard C lib
functions to eliminate warning messages about printf format string.

Patch by Liu Yaxun (Sam)!

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260671 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/SemaOpenCL/builtin.cl