This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to extract internal tree structure information?
- From: "Steven Bosscher" <stevenb dot gcc at gmail dot com>
- To: "Christian Wagner" <christian dot wagner at dnw-germany dot aero>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 25 Jul 2006 14:38:43 +0200
- Subject: Re: How to extract internal tree structure information?
- References: <44C607CB.4060702@dnw-germany.aero>
On 7/25/06, Christian Wagner <christian.wagner@dnw-germany.aero> wrote:
Hi,
I'm trying to extract information from C++ code during the compilation process.
I need information about declarations, statements, functions (including
parameters and symbol name), source line and source file.
Perhaps you can tell why?
Could somebody please point out good places for me to add such a function?
Could you please name tree structures which contain the full information?
Look in gcc/cp/semantics.c, there's a function (I don't recall which)
that finalizes the tree in the front end and hands it to the
middle-end for gimplification (probably through a call to
cgraph_finalize or something like that).
Gr.
Steven