[PATCH] D11207: Enable recognition of __declspec for PS4

Warren Ristow warren_ristow at playstation.sony.com
Wed Jul 15 15:57:25 PDT 2015


wristow added a comment.

> Sony would like support for __declspec without turning on all MS

>  extensions. We currently have the same idea in place to support

>  __declspec for CUDA. It seems to me that there are cases where

>  unconditional support of __declspec is desired. I am wondering if we

>  want an -fdeclspec-ext (or something) that enables just __declspec

>  support, instead of trying to tie this extension to compiler vendors.

>  Obviously, we could turn this extension on for Sony's triple as well

>  in that case. I'm wondering if that's a design we'd want to consider

>  exploring or not.


Yes, and to be clear, it also is not _only_ '__declspec' that we (Sony) want to enable.  Hence the idea of the '-fsce-extensions' approach.

But that said, the set of extensions we want to enable is not large, so the approach of '-fdeclspec-ext' is attractive.  With that in mind, I'll re-implement this concept.

Thanks all.

-Warren


http://reviews.llvm.org/D11207







More information about the cfe-commits mailing list