This is the mail archive of the gcc-patches@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: [tree-ssa] Add -fdump-tree-optimized [patch]


On Thu, 26 Sep 2002, Steven Bosscher wrote:

> I had it there at first, too, but I didn't want to make tree-optimize
> depend on c-tree.h because tree-optimize is supposed to be language
> independent.
> 
It is.  We will be removing dependencies on c-*.h pretty soon.
Also, having it in c-decl.c would prevent other front ends from
using it, even after converting them to GIMPLE.


> Maybe we should rename print_c_tree() to print_[sg]imple_tree() when
> Jason's new IL goes in, and move all the print_c_tree() stuff out of
> c-tree.h, to a new header or to tree-dump.h. The C front end doesn't
> dump C trees, and the new IL is not a C AST anymore.
> 
Well, print_c_tree does show the function in C syntax, so I
wouldn't change the name.  OTOH, the function needs to be moved.
I was thinking we could put it either in diagnostic.h or
tree-dump.h.


Diego.


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