This is the mail archive of the gcc-patches@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: PATCH: Generalize tree-dumping infrastructure


On Tue, 20 Nov 2001, Bryce McKinlay wrote:

> This patch generalizes the tree-dump code so that it can be used from 
> non-C front ends. With this, I have successfully linked and used 
> -fdump-translation-unit from gcj, though it needs a bit more work on the 
> Java side before it is really useful.
> 
> BTW Should we rename c-dump.{c,h} to tree-dump.{c,h} ?

If it is to be non-C-specific (which it should), it clearly mustn't
include any C-specific headers; any tree nodes that are C/C++-specific
must be handled via lang_dump_fn as some C++-specific ones are.  Though
the tree nodes for functions as trees may need to be made
non-C/C++-specific (and more generally trees made less C/C++-specific, and
the docs for trees need to clearly distinguish what is generic and what is
C/C++-specific).

-- 
Joseph S. Myers
jsm28@cam.ac.uk


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