diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1997-07-02 07:47:41 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1997-07-02 07:47:41 -0400 |
commit | 2f013c71f3660f3b0b7b5ddf53b27daf438634f3 (patch) | |
tree | 1bbece9410f1fff5b49efb72fcc697d548530d24 /gcc/genoutput.c | |
parent | 9ad03bc1e2b1c471dc2cc5989b186f3cfc37d102 (diff) | |
download | gcc-2f013c71f3660f3b0b7b5ddf53b27daf438634f3.zip gcc-2f013c71f3660f3b0b7b5ddf53b27daf438634f3.tar.gz gcc-2f013c71f3660f3b0b7b5ddf53b27daf438634f3.tar.bz2 |
(process_template): Place increment expression outside of putchar
function call.
From-SVN: r14382
Diffstat (limited to 'gcc/genoutput.c')
-rw-r--r-- | gcc/genoutput.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/genoutput.c b/gcc/genoutput.c index bbf6200..8fdf4ca 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'); } |