[PATCH] D11207: Enable recognition of __declspec for PS4

Aaron Ballman aaron at aaronballman.com
Wed Jul 15 16:16:47 PDT 2015


On Wed, Jul 15, 2015 at 6:57 PM, Warren Ristow
<warren_ristow at playstation.sony.com> wrote:
> 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.

I had assumed as much. ;-)

> 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.

We may want to see if there's support for this idea before you spend
too much time on it (not that it should be overly difficult to
implement). I think this may warrant a discussion in its own thread,
so I will start one.

~Aaron



More information about the cfe-commits mailing list