GCC Support of Function/Variable Attributes
Jeffrey Walton
noloader@gmail.com
Thu Feb 28 23:54:00 GMT 2013
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:
$ 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
More information about the Gcc
mailing list