[Mesa-dev] [PATCH 1/2] mesa: Detect and provide macros for function attributes pure and const.

Emil Velikov emil.l.velikov at gmail.com
Fri Jul 17 13:52:26 PDT 2015

On 14/07/15 19:45, Eric Anholt wrote:
> 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.
Mindly related: how people feel about making these macros less screamy,
by following the approach used in the kernel: PURE -> __pure and so on ?


More information about the mesa-dev mailing list