Address regressions from e8ff555b95ba and d206d52f657c to work with other compilers
authorJeremy Huddleston <jeremyhu@apple.com>
Fri, 23 Sep 2011 01:55:19 +0000 (18:55 -0700)
committerJeremy Huddleston <jeremyhu@apple.com>
Wed, 28 Sep 2011 20:31:44 +0000 (13:31 -0700)
commit206b30ebc608d29a91cc18665d89e887cac4dba3
tree52702b2e0d09886052625807bd8a92e9ee1bb068
parentafb1fe695d197187a301c19863a128a65389b15c
Address regressions from e8ff555b95ba and d206d52f657c to work with other compilers

1) The error attribute appeared in gcc-4.3
2) The return type of __builtin_constant_p is int
3) Sun Studio 12.0 and later builtin support for __builtin_constant_p

Found by Tinderbox.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
include/misc.h