This is the mail archive of the
mailing list for the GCC project.
Re: attribute data structure rewrite
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Geoffrey Keating <geoffk at apple dot com>
- Cc: gcc List <gcc at gcc dot gnu dot org>
- Date: Thu, 23 Sep 2004 20:05:47 -0400
- Subject: Re: attribute data structure rewrite
- References: <FA388EC7-0DBB-11D9-8B78-000A95B1F520@apple.com>
On Sep 23, 2004, at 7:54 PM, Geoffrey Keating wrote:
As a precondition for other compile speed improvements, I've been
rewriting the way that GCC represents attributes. The result is a
medium-size patch that touches every language and many targets (a
surprising number of targets don't define any special attributes at
The basic principle is that DECL_ATTRIBUTES and TREE_ATTRIBUTES now
point to an attribute_list:
/* A structure representing 'attributes' on a DECL or TYPE node.
Each attribute has a NAME (an IDENTIFIER_NODE) and possibly a
struct one_attribute GTY(())
Shouldn't name be redefined as char* as you don't really need a full
Yes I know that correctly it is not but I would suspect that it would
give a good
speedup as you don't need to allocate as many trees as before.