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]

[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);


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