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: Language-independent functions-as-trees representation


On Wed, 2002-08-28 at 10:10, Jason Merrill wrote:
> On 28 Aug 2002 14:13:12 +0200, Gabriel Dos Reis <gdr@integrable-solutions.net> wrote:
> 
> > Jason Merrill <jason@redhat.com> 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.
> 
Minor nit.  We would be renaming the accessor to something more
intuitive than TREE_COMPLEXITY, right?


Diego.


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