This is the mail archive of the gcc@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: How can I get access to tree representation


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


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