This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How can I get access to tree representation
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Alexander <a dot shabanov at geovid dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 12 Dec 2005 10:47:17 +0100
- Subject: Re: How can I get access to tree representation
- References: <187104693.20051212105850@geovid.com>
Alexander <a.shabanov@geovid.com> writes:
| I started exploring code base of cc1plus, and now I have little
| question - how I can get access to tree representation of program (I
| should do it after gcc/cp/parser.c:cp_parser_translation unit(...), isnt it?)
| If I wasnt mistaken, RTL began build only if parser says that syntax
| OK?
In an ideal world, that is what we would like to have. But currently,
things are a bit intertwined -- and historically, it has been worse :-).
In the current state, the gimplifiers run even if -fsyntax-only.
Worse, they run even when we know the translation unit contains an error.
However, you might get a starting point from the codes that call hooks for
tree dumping.
-- Gaby