This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC Support of Function/Variable Attributes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]