From d52a8965947c9bdc29a607f14561b7e8513b7af1 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 29 Jun 1994 19:25:41 +0000 Subject: [PATCH] Always put 1 space after the macro expansion in ANSI mode. From-SVN: r7600 --- gcc/cccp.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.47.2