This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Add UID's to vops in dump files
- From: Brian Booth <bbooth at redhat dot com>
- To: GCC-Patches <gcc-patches at gcc dot gnu dot org>
- Date: 30 Mar 2004 09:42:35 -0500
- Subject: [tree-ssa] Add UID's to vops in dump files
- Organization:
At the moment, specifying -fdump-tree-all-vops-uid does not print out
the UID's in virtual operands. This patch fixes that. Tested on
i686-pc-linux-gnu.
Brian
---
2004-03-30 Brian Booth <bbooth@redhat.com>
* tree-pretty-print.c (dump_vops): Add flags argument and
propigate it to dump_generic_node calls.
(dump_generic_node): Update dump_vops call.
Index: tree-pretty-print.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-pretty-print.c,v
retrieving revision 1.1.2.79
diff -c -p -r1.1.2.79 tree-pretty-print.c
*** tree-pretty-print.c 26 Mar 2004 16:22:28 -0000 1.1.2.79
--- tree-pretty-print.c 30 Mar 2004 14:29:18 -0000
*************** static void maybe_init_pretty_print (FIL
*** 42,48 ****
static void print_declaration (pretty_printer *, tree, int, int);
static void print_struct_decl (pretty_printer *, tree, int, int);
static void do_niy (pretty_printer *, tree);
! static void dump_vops (pretty_printer *, tree, int);
static void dump_generic_bb_buff (pretty_printer *, basic_block, int, int);
#define INDENT(SPACE) do { \
--- 42,48 ----
static void print_declaration (pretty_printer *, tree, int, int);
static void print_struct_decl (pretty_printer *, tree, int, int);
static void do_niy (pretty_printer *, tree);
! static void dump_vops (pretty_printer *, tree, int, int);
static void dump_generic_bb_buff (pretty_printer *, basic_block, int, int);
#define INDENT(SPACE) do { \
*************** dump_generic_node (pretty_printer *buffe
*** 193,199 ****
&& is_gimple_stmt (node)
&& (flags & TDF_VOPS)
&& stmt_ann (node))
! dump_vops (buffer, node, spc);
if (dumping_stmts
&& (flags & TDF_LINENO)
--- 193,199 ----
&& is_gimple_stmt (node)
&& (flags & TDF_VOPS)
&& stmt_ann (node))
! dump_vops (buffer, node, spc, flags);
if (dumping_stmts
&& (flags & TDF_LINENO)
*************** newline_and_indent (pretty_printer *buff
*** 2041,2047 ****
}
static void
! dump_vops (pretty_printer *buffer, tree stmt, int spc)
{
size_t i;
stmt_ann_t ann = stmt_ann (stmt);
--- 2041,2047 ----
}
static void
! dump_vops (pretty_printer *buffer, tree stmt, int spc, int flags)
{
size_t i;
stmt_ann_t ann = stmt_ann (stmt);
*************** dump_vops (pretty_printer *buffer, tree
*** 2051,2059 ****
for (i = 0; i < NUM_VDEFS (vdefs); i++)
{
pp_string (buffer, "# ");
! dump_generic_node (buffer, VDEF_RESULT (vdefs, i), spc + 2, 0, false);
pp_string (buffer, " = VDEF <");
! dump_generic_node (buffer, VDEF_OP (vdefs, i), spc + 2, 0, false);
pp_string (buffer, ">;");
newline_and_indent (buffer, spc);
}
--- 2051,2059 ----
for (i = 0; i < NUM_VDEFS (vdefs); i++)
{
pp_string (buffer, "# ");
! dump_generic_node (buffer, VDEF_RESULT (vdefs, i), spc + 2, flags, false);
pp_string (buffer, " = VDEF <");
! dump_generic_node (buffer, VDEF_OP (vdefs, i), spc + 2, flags, false);
pp_string (buffer, ">;");
newline_and_indent (buffer, spc);
}
*************** dump_vops (pretty_printer *buffer, tree
*** 2062,2068 ****
{
tree vuse = VUSE_OP (vuses, i);
pp_string (buffer, "# VUSE <");
! dump_generic_node (buffer, vuse, spc + 2, 0, false);
pp_string (buffer, ">;");
newline_and_indent (buffer, spc);
}
--- 2062,2068 ----
{
tree vuse = VUSE_OP (vuses, i);
pp_string (buffer, "# VUSE <");
! dump_generic_node (buffer, vuse, spc + 2, flags, false);
pp_string (buffer, ">;");
newline_and_indent (buffer, spc);
}