Alexander <[EMAIL PROTECTED]> 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

Reply via email to