aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@gcc.gnu.org>1994-06-29 19:25:41 +0000
committerMichael Meissner <meissner@gcc.gnu.org>1994-06-29 19:25:41 +0000
commitd52a8965947c9bdc29a607f14561b7e8513b7af1 (patch)
tree3d6b883aad44df72a0e8b05528d85421bb007a8d
parent094030c93f19e1da77ab7a8d02d83603815d0d59 (diff)
downloadgcc-d52a8965947c9bdc29a607f14561b7e8513b7af1.zip
gcc-d52a8965947c9bdc29a607f14561b7e8513b7af1.tar.gz
gcc-d52a8965947c9bdc29a607f14561b7e8513b7af1.tar.bz2
Always put 1 space after the macro expansion in ANSI mode.
From-SVN: r7600
-rw-r--r--gcc/cccp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index beabe38..907bb91 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -5821,6 +5821,14 @@ collect_expansion (buf, end, nargs, arglist)
}
}
+ if (!traditional && expected_delimiter == 0) {
+ /* There is no trailing whitespace, so invent some in ANSI mode.
+ But not if "inside a string" (which in ANSI mode
+ happens only for -D option). */
+ *exp_p++ = '\n';
+ *exp_p++ = ' ';
+ }
+
*exp_p = '\0';
defn->length = exp_p - defn->expansion;