cppmacro.c (cpp_macro_definition): Emit a space after the macro name...
authorJim Blandy <jimb@redhat.com>
Tue, 19 Mar 2002 21:43:39 +0000 (21:43 +0000)
committerJim Blandy <jimb@gcc.gnu.org>
Tue, 19 Mar 2002 21:43:39 +0000 (21:43 +0000)
* cppmacro.c (cpp_macro_definition): Emit a space after the macro
name, even if the replacement list contains no tokens, as required
by Dwarf.

From-SVN: r51045

gcc/ChangeLog
gcc/cppmacro.c

index aadf05fcb16e3e90ff83ad9bf3ea1be9cfc1ce12..979e2e6ac166f033cb6481e37f5d8eaab215ef58 100644 (file)
@@ -1,3 +1,9 @@
+2002-03-19  Jim Blandy  <jimb@redhat.com>
+
+       * cppmacro.c (cpp_macro_definition): Emit a space after the macro
+       name, even if the replacement list contains no tokens, as required
+       by Dwarf.
+
 2002-03-19  Jason Merrill  <jason@redhat.com>
 
        * varasm.c (globalize_decl): Get the name from the RTL, not
index c5bb71e795479a0253b1218bd8f7044b06481956..3ce44be504c5a596664145afc75a84e80689f901 100644 (file)
@@ -1561,10 +1561,13 @@ cpp_macro_definition (pfile, node)
       *buffer++ = ')';
     }
 
+  /* The Dwarf spec requires a space after the macro name, even if the
+     definition is the empty string.  */
+  *buffer++ = ' ';
+
   /* Expansion tokens.  */
   if (macro->count)
     {
-      *buffer++ = ' ';
       for (i = 0; i < macro->count; i++)
        {
          cpp_token *token = &macro->expansion[i];