[PATCH v2] Address regressions from e8ff555b95baab66cc7d060c1e7f9fdd49d3802f

Alan Coopersmith alan.coopersmith at oracle.com
Thu Sep 22 19:49:18 PDT 2011


On 09/22/11 07:11 PM, Jeremy Huddleston wrote:
> -static inline void __builtin_constant_p(int x)
> +static inline int constant_p(int x)
>   {
> +#if defined(__GNUC__) || (defined(__SUNPRO_C)&&  (__SUNPRO_C>= 0x590))
> +	return __builtin_constant_p(x);
> +#else
>   	return 0;
> -}
>   #endif
> +}

Since __builtin_constant_p is more of a keyword than a function, does the
magic still work when you have the extra level of indirection?

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list