Re: GCC Support of Function/Variable Attributes

2013-03-01 Thread Marc Glisse

On Thu, 28 Feb 2013, Jeffrey Walton wrote:


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?


That wouldn't be the only place where clang is not perfectly compatible 
with gcc...



http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html
http://gcc.gnu.org/onlinedocs/gcc/Variable-Attributes.html


When you click on "Manual" on gcc's webpage, you are sent to a list of 
manuals per version:

http://gcc.gnu.org/onlinedocs/

Seems easy to check the oldest one:
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC90

(and if it hadn't been supported then, you could have used a dichotomy)

--
Marc Glisse


Re: GCC Support of Function/Variable Attributes

2013-03-01 Thread Jeffrey Walton
On Thu, Feb 28, 2013 at 8:05 PM, Andrew Pinski  wrote:
> On Thu, Feb 28, 2013 at 3:54 PM, Jeffrey Walton  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 and Marc. My apologies for the extra chatter.

Jeff


gcc-4.6-20130301 is now available

2013-03-01 Thread gccadmin
Snapshot gcc-4.6-20130301 is now available on
  ftp://gcc.gnu.org/pub/gcc/snapshots/4.6-20130301/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 4.6 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch 
revision 196395

You'll find:

 gcc-4.6-20130301.tar.bz2 Complete GCC

  MD5=5de5253a703569294f9b5f04a78877b4
  SHA1=65641a06877ed75b97cb1e7605762c57bdfd7515

Diffs from 4.6-20130222 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-4.6
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.