Commit bc43e0ec by Nathan Sidwell Committed by Nathan Sidwell

gimple-pretty-print.c (dump_gimple_call_args): Simplify "' " printing.

	* gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
	printing.

From-SVN: r240570
parent a29b7214
2016-09-28 Nathan Sidwell <nathan@acm.org>
* gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
printing.
2016-09-28 Wilco Dijkstra <wdijkstr@arm.com> 2016-09-28 Wilco Dijkstra <wdijkstr@arm.com>
PR tree-optimization/61056 PR tree-optimization/61056
......
...@@ -649,26 +649,21 @@ dump_gimple_call_args (pretty_printer *buffer, gcall *gs, int flags) ...@@ -649,26 +649,21 @@ dump_gimple_call_args (pretty_printer *buffer, gcall *gs, int flags)
{ {
i++; i++;
pp_string (buffer, enums[v]); pp_string (buffer, enums[v]);
if (i < gimple_call_num_args (gs))
pp_string (buffer, ", ");
} }
} }
} }
for (; i < gimple_call_num_args (gs); i++) for (; i < gimple_call_num_args (gs); i++)
{ {
dump_generic_node (buffer, gimple_call_arg (gs, i), 0, flags, false); if (i)
if (i < gimple_call_num_args (gs) - 1)
pp_string (buffer, ", "); pp_string (buffer, ", ");
dump_generic_node (buffer, gimple_call_arg (gs, i), 0, flags, false);
} }
if (gimple_call_va_arg_pack_p (gs)) if (gimple_call_va_arg_pack_p (gs))
{ {
if (gimple_call_num_args (gs) > 0) if (i)
{ pp_string (buffer, ", ");
pp_comma (buffer);
pp_space (buffer);
}
pp_string (buffer, "__builtin_va_arg_pack ()"); pp_string (buffer, "__builtin_va_arg_pack ()");
} }
......
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