This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Generalize tree-dumping infrastructure
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 20 Nov 2001 09:05:54 +0000 (GMT)
- Subject: 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