[tree-ssa] PATCH to use DECL_UID in dumps

Jason Merrill jason@redhat.com
Sun Nov 16 17:43:00 GMT 2003


Along the same lines as rth's recent patch, this patch changes the tree
dumpers to use DECL_UID/TYPE_UID for decls and types without names.  The
difference between this and LABEL_DECL_UID is that DECL_UID is per-file and
LABEL_DECL_UID is per-function, so the latter is better to use when
available.

I also restored the debug_c_tree function, called by the pct macro in
gdbinit.in.

Applied to tree-ssa branch.

2003-11-16  Jason Merrill  <jason@redhat.com>

	* c-pretty-print.c (debug_c_tree): Restore removed fn.
	* diagnostic.h: Declare it.

	* tree-pretty-print.c (dump_generic_node): Use DECL_UID when
	dumping anonymous decls.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-patch
Size: 4562 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20031116/854e9581/attachment.bin>


More information about the Gcc-patches mailing list