From 67887b7b7fbabf03f25d5673ef9e1349f0293830 Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Thu, 26 Jun 2014 10:36:39 +0800 Subject: [PATCH] GBE: fix some bugs in ocl stdlib header files. The printf's prototype was added twice incorrectly. Signed-off-by: Zhigang Gong Reviewed-by: "Song, Ruiling" --- backend/src/ocl_stdlib.tmpl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index 412966e..42f5e85 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, ...); -- 2.7.4