Commit 874a3756 by Marc Glisse Committed by Marc Glisse

re PR middle-end/54193 (dump_gimple_assign raw can't handle 4 operands)

2012-08-12 Marc Glisse <marc.glisse@inria.fr>

	PR middle-end/54193
	* gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.

From-SVN: r190328
parent 0885e950
2012-08-12 Marc Glisse <marc.glisse@inria.fr>
PR middle-end/54193
* gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
2012-08-12 Oleg Endo <olegendo@gcc.gnu.org> 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
PR target/39423 PR target/39423
......
...@@ -477,17 +477,25 @@ dump_gimple_assign (pretty_printer *buffer, gimple gs, int spc, int flags) ...@@ -477,17 +477,25 @@ dump_gimple_assign (pretty_printer *buffer, gimple gs, int spc, int flags)
{ {
if (flags & TDF_RAW) if (flags & TDF_RAW)
{ {
tree last; tree arg1 = NULL;
if (gimple_num_ops (gs) == 2) tree arg2 = NULL;
last = NULL_TREE; tree arg3 = NULL;
else if (gimple_num_ops (gs) == 3) switch (gimple_num_ops (gs))
last = gimple_assign_rhs2 (gs); {
else case 4:
arg3 = gimple_assign_rhs3 (gs);
case 3:
arg2 = gimple_assign_rhs2 (gs);
case 2:
arg1 = gimple_assign_rhs1 (gs);
break;
default:
gcc_unreachable (); gcc_unreachable ();
}
dump_gimple_fmt (buffer, spc, flags, "%G <%s, %T, %T, %T>", gs, dump_gimple_fmt (buffer, spc, flags, "%G <%s, %T, %T, %T, %T>", gs,
tree_code_name[gimple_assign_rhs_code (gs)], tree_code_name[gimple_assign_rhs_code (gs)],
gimple_assign_lhs (gs), gimple_assign_rhs1 (gs), last); gimple_assign_lhs (gs), arg1, arg2, arg3);
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment