This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tuples] fix pretty printer typo
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: chrismatthews at google dot com, gcc-patches at gcc dot gnu dot org, dnovillo at google dot com
- Date: Wed, 20 Jun 2007 08:17:19 -0600
- Subject: [tuples] fix pretty printer typo
The following patch fixes an ICE while dumping tuples out.
Chris, why did you add op_symbol_code()? The subcode_flags for a
GS_ASSIGN node is the same as those used by trees, so no new function is
needed. Could you remove the op_symbol_code function if it's not
needed?
Thanks.
Committed.
* tree-pretty-print.c (dump_gimple_stmt): Change pred_symbol_code
to op_symbol_code.
Index: tree-pretty-print.c
===================================================================
--- tree-pretty-print.c (revision 125868)
+++ tree-pretty-print.c (working copy)
@@ -2155,7 +2155,7 @@ dump_gimple_stmt (pretty_printer *buffer
dump_generic_node (buffer, gs_assign_operand_rhs (gs), spc,
flags, false);
pp_space (buffer);
- pp_string (buffer, pred_symbol_code (GS_SUBCODE_FLAGS (gs)));
+ pp_string (buffer, op_symbol_code (GS_SUBCODE_FLAGS (gs)));
pp_space (buffer);
dump_generic_node (buffer, gs_assign_operand_rhs2 (gs), spc,
flags, false);