From: Richard Kenner Date: Wed, 2 Jul 1997 11:47:41 +0000 (-0400) Subject: (process_template): Place increment expression outside of putchar X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f013c71f3660f3b0b7b5ddf53b27daf438634f3;p=gcc.git (process_template): Place increment expression outside of putchar function call. From-SVN: r14382 --- diff --git a/gcc/genoutput.c b/gcc/genoutput.c index bbf620068b9..8fdf4ca2c11 100644 --- a/gcc/genoutput.c +++ b/gcc/genoutput.c @@ -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'); }