From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9206 invoked by alias); 24 Sep 2004 02:30:25 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 9180 invoked from network); 24 Sep 2004 02:30:23 -0000 Received: from unknown (HELO smtp0.libero.it) (193.70.192.33) by sourceware.org with SMTP; 24 Sep 2004 02:30:23 -0000 Received: from localhost (172.16.1.83) by smtp0.libero.it (7.0.027-DD01) id 40D2BD6001467A08; Fri, 24 Sep 2004 04:30:19 +0200 Received: from bagio (151.42.78.220) by smtp1.libero.it (7.0.027-DD01) id 40CB29090437F549; Fri, 24 Sep 2004 04:30:21 +0200 Message-ID: <007a01c4a1de$78b66ed0$dc4e2a97@bagio> From: "Giovanni Bajo" To: "Geoffrey Keating" Cc: References: Subject: Re: attribute data structure rewrite Date: Fri, 24 Sep 2004 02:35:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at libero.it serv4 X-SW-Source: 2004-09/txt/msg01387.txt.bz2 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