mesa: Detect and provide macros for function attributes pure and const.
authorEric Anholt <eric@anholt.net>
Fri, 10 Jul 2015 23:25:26 +0000 (16:25 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 17 Jul 2015 19:25:54 +0000 (12:25 -0700)
commitbe1f49bda90425b7fd009ac177b307e61da0f994
treeafd9b00c1e9c63900294f6f3cbb31d6e521fb734
parentbde4c8ec1fd69e312fe21e36c8ce07139916811a
mesa: Detect and provide macros for function attributes pure and const.

These are really useful hints to the compiler in the absence of link-time
optimization, and I'm going to use them in VC4.

I've made the const attribute be ATTRIBUTE_CONST unlike other function
attributes, because we have other things in the tree #defining CONST for
their own unrelated purposes.

v2: Alphabetize.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
configure.ac
src/util/macros.h