This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Change label dumping, UID dumping
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 28 Aug 2007 20:13:19 +0200 (CEST)
- Subject: [PATCH] Change label dumping, UID dumping
This changes label dumping if we use the DECL_UID from
<D12345>:;
to
<D.12345>:;
that is, dump DECL_UID like we do everywhere else. It also changes
dumping of referenced vars from
Variable: <retval>, UID 6367, intD.2
to
Variable: <retval>, UID D.6367, intD.2
(same rationale).
Any strong feelings about such changes? It makes matching up dump-files
a lot easier.
Richard.
Index: tree-dfa.c
===================================================================
*** tree-dfa.c (revision 127864)
--- tree-dfa.c (working copy)
*************** dump_variable (FILE *file, tree var)
*** 325,331 ****
ann = var_ann (var);
! fprintf (file, ", UID %u", (unsigned) DECL_UID (var));
fprintf (file, ", ");
print_generic_expr (file, TREE_TYPE (var), dump_flags);
--- 325,331 ----
ann = var_ann (var);
! fprintf (file, ", UID D.%u", (unsigned) DECL_UID (var));
fprintf (file, ", ");
print_generic_expr (file, TREE_TYPE (var), dump_flags);
Index: tree-pretty-print.c
===================================================================
*** tree-pretty-print.c (revision 127864)
--- tree-pretty-print.c (working copy)
*************** dump_generic_node (pretty_printer *buffe
*** 863,869 ****
pp_printf (buffer, "<L" HOST_WIDE_INT_PRINT_DEC ">",
LABEL_DECL_UID (node));
else
! pp_printf (buffer, "<D%u>", DECL_UID (node));
break;
case TYPE_DECL:
--- 863,869 ----
pp_printf (buffer, "<L" HOST_WIDE_INT_PRINT_DEC ">",
LABEL_DECL_UID (node));
else
! pp_printf (buffer, "<D.%u>", DECL_UID (node));
break;
case TYPE_DECL: