From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Dos Reis To: Jason Merrill Cc: Neil Booth , gcc@gcc.gnu.org Subject: Re: Language-independent functions-as-trees representation Date: Wed, 28 Aug 2002 08:32:00 -0000 Message-id: References: <20020823200122.GF7880@daikokuya.co.uk> X-SW-Source: 2002-08/msg01844.html Jason Merrill writes: | On 28 Aug 2002 14:13:12 +0200, Gabriel Dos Reis wrote: | | > Jason Merrill writes: | > | > | Does anyone object to using TREE_COMPLEXITY for source position in all | > | expressions (i.e. things which have TREE_COMPLEXITY, not *_DECL, *_CST)? | > | > Sorry, I'm unclear here. We already have DECL_SOURCE_LOCATION to | > indicate source location for _DECLs. Would you mind elaborating a bit | > on your idea? | | Yes, but that only applies to _DECLs. We need source location info for | other expressions, too, if we're going to have useful debugging info. I'm | suggesting that we use TREE_COMPLEXITY for this purpose. Aha, OK. That makes sense to me, now. Sometime ago, Neil proposed to attach source location information to every token CPP passes to the front-end (using line-map.h machinery). I think both your proposals are complementary and make sense. -- Gaby