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: attribute data structure rewrite



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 all).

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 VALUE. */
struct one_attribute GTY(())
{
tree name;
tree value;
};

Shouldn't name be redefined as char* as you don't really need a full IDENTIFIER_NODE?
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.



Thanks, Andrew Pinski


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