Always put 1 space after the macro expansion in ANSI mode.
authorMichael Meissner <meissner@gcc.gnu.org>
Wed, 29 Jun 1994 19:25:41 +0000 (19:25 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Wed, 29 Jun 1994 19:25:41 +0000 (19:25 +0000)
From-SVN: r7600

gcc/cccp.c

index beabe38..907bb91 100644 (file)
@@ -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;