[RFC][4.4] Convenience reorganization of parts of tree.h

Tom Tromey tromey@redhat.com
Sun Dec 2 06:44:00 GMT 2007

>>>>> "Dan" == Daniel Berlin <dberlin@dberlin.org> writes:

Diego> Turning macros into inline functions has the exact opposite effect for
Diego> debugging.  It will now be possible to call these accessors from gdb
Diego> instead of having to remember the field names.

Dan> Compile with -g3 and you can use the macros as if they were functions.
Dan> :)

... except for the statement-expressions in all the tree type checks :-(

Changing the checking macros as a first step would be easy and
immediately beneficial.  So, hint hint, please start there.

Overall I think I'm generally in favor the project -- since I have an
idea in mind for how to abuse the new accessors when debugging the
incremental compiler -- but provided due diligence is done on the
performance and code size questions, which I think were raised last
time this was discussed on the list.


More information about the Gcc-patches mailing list