From: Michael Meissner Date: Wed, 29 Jun 1994 19:25:41 +0000 (+0000) Subject: Always put 1 space after the macro expansion in ANSI mode. X-Git-Tag: misc/cutover-egcs-0~6343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d52a8965947c9bdc29a607f14561b7e8513b7af1;p=thirdparty%2Fgcc.git Always put 1 space after the macro expansion in ANSI mode. From-SVN: r7600 --- diff --git a/gcc/cccp.c b/gcc/cccp.c index beabe383b247..907bb91dab16 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;