cppmacro.c (cpp_macro_definition): Emit a space after the macro name...

* 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: r51063
This commit is contained in:
Jim Blandy 2002-03-20 05:01:20 +00:00 committed by Jim Blandy
parent 759cb3c4d2
commit ae01ff6aa2
2 changed files with 10 additions and 1 deletions

View 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 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/rs6000.c (rs6000_override_options): Only warn

View File

@ -1580,10 +1580,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];