[cfe-commits] [PATCH] OpenCL 1.2 storage class specifiers and errors

Peter Collingbourne peter at pcc.me.uk
Wed Jun 13 13:31:23 PDT 2012


On Wed, Jun 13, 2012 at 01:08:56PM -0700, Tanya Lattner wrote:
> Attached is a patch that enabled storage class specifiers static and extern to be allowed except static can't be used for kernel functions and variables in the local scope. This is new as of OpenCL 1.2.
> 
> I've included a test case.
> 
> Please review.

Hi Tanya,

We should respect the -cl-std option and only allow these storage class
specifiers if -cl-std=CL1.2.

Thanks,
-- 
Peter



More information about the cfe-commits mailing list