From: Nathan Sidwell Date: Wed, 28 Sep 2016 11:26:16 +0000 (+0000) Subject: gimple-pretty-print.c (dump_gimple_call_args): Simplify "' " printing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bc43e0ec4ba4589cc0071484459d10065ecc02aa;p=gcc.git gimple-pretty-print.c (dump_gimple_call_args): Simplify "' " printing. * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' " printing. From-SVN: r240570 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 75eeb632adb..e1e8bc385cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-09-28 Nathan Sidwell + + * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' " + printing. + 2016-09-28 Wilco Dijkstra PR tree-optimization/61056 diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index 10cb168af74..10bf80139b6 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -649,26 +649,21 @@ dump_gimple_call_args (pretty_printer *buffer, gcall *gs, int flags) { i++; pp_string (buffer, enums[v]); - if (i < gimple_call_num_args (gs)) - pp_string (buffer, ", "); } } } for (; i < gimple_call_num_args (gs); i++) { - dump_generic_node (buffer, gimple_call_arg (gs, i), 0, flags, false); - if (i < gimple_call_num_args (gs) - 1) + if (i) 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_num_args (gs) > 0) - { - pp_comma (buffer); - pp_space (buffer); - } + if (i) + pp_string (buffer, ", "); pp_string (buffer, "__builtin_va_arg_pack ()"); }