Vincent Torri wrote: > > Hey, > > On Wed, Jul 29, 2009 at 6:50 PM, Dave Pagan <David.Pagan at sun.com > <mailto: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 ?
If you want to ensure the attribute is available, you should do this: #if __SUNPRO_C >= 0x590 --Dave
