Hello Gabriel, Monday, December 12, 2005, 12:47:17 PM, you wrote:
> 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 Uhh... sad :-) When cc1plus make tree dumping can we be sure, that tree correctly represented program structure, i.e. symbolic information unharmed, and we could make back-transformation - from tree to source-without-comments level? -- Best regards, Alexander mailto:[EMAIL PROTECTED]