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


Geoffrey Keating wrote:

> /* 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;
> };
> 
> /* A counted list of attributes.  */
> struct attribute_list_s GTY(())
> {
>    attribute_count n_attributes;
>    /* There are 16 bits free here.  */
>    struct one_attribute GTY((length ("%h.n_attributes"))) attribs[1];
> };

Why not simply VEC(one_attribute) ?

Do you have some numbers on the speedup we get with this?

Giovanni Bajo



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