>>>>> "Johan" == Johan Bohlin <[EMAIL PROTECTED]> writes:

Johan> Hi I have a question regarding gcc or g++
Johan> -fdump-tree-all-raw-details (.tu file). I want to dump the
Johan> entire C (not C++) AST tree the only way to do this, without
Johan> losing any information, is if I use g++ and
Johan> -fdump-tree-all-raw-details and i have some kind of error in
Johan> the file. Can I in some way change a flag or edit a method in
Johan> the source files so i can use this option without having an
Johan> error in my c file but get all the information. Even better
Johan> would be if i could use gcc.

I don't think there is a way to do this without modifying gcc.  FWIW,
I think that would be a worthwhile project; IMO gcc should move a bit
more into the analysis space.

Note that the C front end does lose information relatively early.  For
instance, it constant folds as it builds expression trees.  So, even
internally the AST won't show you some things that you might want to
see.  This is also fixable of course.

Tom

Reply via email to