This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC Support of Function/Variable Attributes
- From: Andrew Pinski <pinskia at gmail dot com>
- To: noloader at gmail dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 28 Feb 2013 17:05:26 -0800
- Subject: Re: GCC Support of Function/Variable Attributes
- References: <CAH8yC8kXeDhzasTW_gphkCgwT+V-WRjV0d5c=Gsr=77L9tRoDA@mail.gmail.com>
On Thu, Feb 28, 2013 at 3:54 PM, Jeffrey Walton <noloader@gmail.com> wrote:
> Hi All,
>
> I'm having trouble compiling sources adorned with the aligned
> attribute under Clang 3.1. Clang claims its GCC 4.2.1 compatible:
This is not a good list to ask this question as if clang claims to
4.2.1 compatible and is not then it is a bug in clang and you should
report your findings to them rather to GCC. The aligned attribute has
been in GCC since at least 3.0. Also if you need help with GCC's
behavior, the list you want to use instead of the gcc@ list is the
gcc-help@ list.
Thanks,
Andrew Pinski
>
> $ clang -dM -E -x c /dev/null | grep -i gnuc
> #define __GNUC_MINOR__ 2
> #define __GNUC_PATCHLEVEL__ 1
> #define __GNUC_STDC_INLINE__ 1
> #define __GNUC__ 4
>
> When did GCC add support for function and variable attributes?
> Specifically, __attribute__(aligned) for x86/x64? Did the aligned
> attribute come into being after GCC 4.2?
>
> Jeff
>
> http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
> http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html