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: [PATCH] Yet another tree dumper


A suggestion:

Check in the new tree-dumper, but into the print-tree.c
like this:

#define USE_NEW_DUMPER 1
#ifdef NEW_DUMPER
... code for new dumper ...;
tree
debug_tree (tree node)
{ call new dumper; }
#else
... existing code for old dumper ...;
tree
debug_tree (tree node)
{ call old dumper; }
#endif

This would be a temporary situation.  It allows people
to try out the new dumper, and possibly improve it.
If people end up preferring the old dumper, it is easy
to revert the change.  If most people end up liking the
new dumper, it is easy to rip out the old code.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/



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