[Beignet] [PATCH] GBE: clang's FE doesn't support static, we just ignore it.
Yang, Rong R
rong.r.yang at intel.com
Mon Jan 6 21:50:04 PST 2014
LGTM, thanks.
-----Original Message-----
From: beignet-bounces at lists.freedesktop.org [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Zhigang Gong
Sent: Tuesday, January 07, 2014 12:37 PM
To: beignet at lists.freedesktop.org
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 <zhigang.gong at intel.com>
---
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
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list