[Mesa-dev] [PATCH 3/7] scons: set HAVE_FUNC_ATTRIBUTE_ALIAS

Jose Fonseca jfonseca at vmware.com
Mon Dec 5 22:08:53 UTC 2016


On 05/12/16 19:52, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> Analogoust to the previous commit were we did so for autotools
>
> Cc: Jose Fonseca <jfonseca at vmware.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> Jose, I'm not 100% sure if that holds true the compiler(s) that you
> gents use. Can you please double-check ?
>
> Thanks
> Emil
> ---
>  include/c99_compat.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/c99_compat.h b/include/c99_compat.h
> index 24e96e0..cb690c6 100644
> --- a/include/c99_compat.h
> +++ b/include/c99_compat.h
> @@ -163,6 +163,7 @@ test_c99_compat_h(const void * restrict a,
>  #    define HAVE_FUNC_ATTRIBUTE_UNUSED 1
>  #    define HAVE_FUNC_ATTRIBUTE_FORMAT 1
>  #    define HAVE_FUNC_ATTRIBUTE_PACKED 1
> +#    define HAVE_FUNC_ATTRIBUTE_ALIAS 1
>
>  #    if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
>         /* https://gcc.gnu.org/onlinedocs/gcc-4.3.6/gcc/Other-Builtins.html */
>


Per 
https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Function-Attributes.html 
it's supported on GCC-4.2 so it should be there.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

Jose


More information about the mesa-dev mailing list