Studio 12.0 and later have builtin support for __builtin_constant_p and
if you try to define a function with that name, they issue an error:
../include/misc.h, line 271: syntax error before or at: __builtin_constant_p
For older versions, the fallback definition needs to specify it returns
an int,
On Thu, Sep 22, 2011 at 8:31 PM, Alan Coopersmith
alan.coopersm...@oracle.com wrote:
Studio 12.0 and later have builtin support for __builtin_constant_p and
if you try to define a function with that name, they issue an error:
../include/misc.h, line 271: syntax error before or at:
Ack, this is gonna conflict with the patch I just sent. I'll roll this into
mine and send a new one in a sec.
On Sep 22, 2011, at 18:59, Matt Turner wrote:
On Thu, Sep 22, 2011 at 8:31 PM, Alan Coopersmith
alan.coopersm...@oracle.com wrote:
Studio 12.0 and later have builtin support for
Reviewed-by: Jamey Sharp ja...@minilop.net
Seems like there ought to be a better way than listing which compilers
support it, though. I considered an autoconf test to check whether
__builtin_constant_p is defined, but that doesn't tell you which
compiler is pulling in misc.h each time it's used.