gimple-pretty-print.c (dump_gimple_call_args): Simplify "' " printing.
authorNathan Sidwell <nathan@acm.org>
Wed, 28 Sep 2016 11:26:16 +0000 (11:26 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 28 Sep 2016 11:26:16 +0000 (11:26 +0000)
* gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
printing.

From-SVN: r240570

gcc/ChangeLog
gcc/gimple-pretty-print.c

index 75eeb632adb124f6c6451b56aa70af6dd2784c18..e1e8bc385cb14a1651f46e9dfa3cad4df8849fa4 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR tree-optimization/61056
index 10cb168af74c528e18d51760ba2306889b43a7a3..10bf80139b6806824dd0e8e294712f5ffa933f01 100644 (file)
@@ -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 ()");
     }