(process_template): Place increment expression outside of putchar
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 2 Jul 1997 11:47:41 +0000 (07:47 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 2 Jul 1997 11:47:41 +0000 (07:47 -0400)
function call.

From-SVN: r14382

gcc/genoutput.c

index bbf620068b9c7b440f86369767d7fb02e81e1d8f..8fdf4ca2c11c99d220754d7873d858a02326fbe5 100644 (file)
@@ -1,5 +1,5 @@
 /* Generate code from to output assembler insns as recognized from rtl.
-   Copyright (C) 1987, 1988, 1992, 1994, 1995 Free Software Foundation, Inc.
+   Copyright (C) 1987, 88, 92, 94, 95, 1997 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -581,7 +581,10 @@ process_template (d, template)
 
          printf ("    \"");
          while (*cp != '\n' && *cp != '\0')
-           putchar (*cp++);
+           {
+             putchar (*cp);
+             cp++;
+           }
 
          printf ("\",\n");
          i++;
@@ -601,7 +604,11 @@ process_template (d, template)
          VAX-11 "C" on VMS.  It is the equivalent of:
                printf ("%s\n", &template[1])); */
       cp = &template[1];
-      while (*cp) putchar (*cp++);
+      while (*cp)
+       {
+         putchar (*cp);
+         cp++;
+       }
       putchar ('\n');
     }