summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@intel.com>2014-06-26 10:36:39 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-06-26 11:21:10 +0800
commit67887b7b7fbabf03f25d5673ef9e1349f0293830 (patch)
tree0166608b0d469d160f2728806ef368065c27dc20
parenta558a3a19fa8c0b96b0b6688bcf4559d493c9291 (diff)
downloadbeignet-67887b7b7fbabf03f25d5673ef9e1349f0293830.tar.gz
GBE: fix some bugs in ocl stdlib header files.
The printf's prototype was added twice incorrectly. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
-rwxr-xr-xbackend/src/ocl_stdlib.tmpl.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h
index 412966ef..42f5e854 100755
--- a/backend/src/ocl_stdlib.tmpl.h
+++ b/backend/src/ocl_stdlib.tmpl.h
@@ -4585,10 +4585,8 @@ int __gen_ocl_get_image_channel_data_type(uint surface_id);
int __gen_ocl_get_image_channel_order(uint surface_id);
int __gen_ocl_get_image_depth(uint surface_id);
/* The printf function. */
-int __gen_ocl_printf_stub(const char * format, ...);
-/* The printf function. */
-/* From LLVM 3.5, c string are all in constant address space */
-#if 100*__clang_major__ + __clang_minor__ < 305
+/* From LLVM 3.4, c string are all in constant address space */
+#if 100*__clang_major__ + __clang_minor__ < 304
int __gen_ocl_printf_stub(const char * format, ...);
#else
int __gen_ocl_printf_stub(constant char * format, ...);