Hey,

On Wed, Jul 29, 2009 at 6:50 PM, Dave Pagan <David.Pagan at sun.com> wrote:

>
> Vincent,
>
> Don't know if anyone answered your question already. Didn't see any
> response.
>
> Of those listed below, only malloc, pure, and const have been supported (as
> of  SunStudio 12). The rest are not. There is no equivalent
> to__builtin_expect that I'm aware of.
>
> --Dave
>

thank you for your response. Do you know if I have to test the value of
__SUNPRO_C (and in that case, which value), or if I just have to do a #ifdef
__SUNPRO_C to use those attributes ?

thank you

Vincent Torri


>
> Vincent Torri wrote:
>
>> Hey
>>
>> I would like to know if the following attributes (supported by gcc) are
>> supported with Sun compilers, and which version should I test with
>> __SUNPRO_C to know if they are supported:
>>
>> warn_unused_result
>> nonnull
>> __deprecated__
>> malloc
>> pure
>> format
>> format_arg
>> const
>>
>> also, is there something equivalent to the gcc __builtin_expect ?
>>
>> thank you
>>
>> Vincent Torri
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20090730/c72fb78c/attachment.html>

Reply via email to