LGTM, thanks. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Zhigang Gong Sent: Tuesday, January 07, 2014 12:37 PM To: [email protected] Cc: Gong, Zhigang Subject: [Beignet] [PATCH] GBE: clang's FE doesn't support static, we just ignore it.
Although opencl spec does support static global variable or non-kernel function, clang doesn't support them currently. We simply ignore it currently. Signed-off-by: Zhigang Gong <[email protected]> --- backend/src/ocl_stdlib.tmpl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/ocl_stdlib.tmpl.h b/backend/src/ocl_stdlib.tmpl.h index 03044c4..07a4fd9 100755 --- a/backend/src/ocl_stdlib.tmpl.h +++ b/backend/src/ocl_stdlib.tmpl.h @@ -25,6 +25,8 @@ #define PURE __attribute__((pure)) #define CONST __attribute__((const)) #define INLINE_OVERLOADABLE inline __attribute__((overloadable,always_inline)) +// FIXME, clang's opencl FE doesn't support static. +#define static ///////////////////////////////////////////////////////////////////////////// // OpenCL built-in scalar data types -- 1.7.9.5 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
