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: r51045
This commit is contained in:
Jim Blandy 2002-03-19 21:43:39 +00:00 committed by Jim Blandy
parent f9d09ae5bb
commit e37b38d7d6
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 Jason Merrill <jason@redhat.com>
* varasm.c (globalize_decl): Get the name from the RTL, not

View 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];