From: Jim Blandy Date: Tue, 19 Mar 2002 21:43:39 +0000 (+0000) Subject: cppmacro.c (cpp_macro_definition): Emit a space after the macro name... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e37b38d7d66898d35f9c092a06588d4ebb3a425b;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index aadf05fcb16..979e2e6ac16 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-03-19 Jim Blandy + + * 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 * varasm.c (globalize_decl): Get the name from the RTL, not diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c index c5bb71e7954..3ce44be504c 100644 --- a/gcc/cppmacro.c +++ b/gcc/cppmacro.c @@ -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 = ¯o->expansion[i];