aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmacro.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@redhat.com>2002-03-19 21:43:39 +0000
committerJim Blandy <jimb@gcc.gnu.org>2002-03-19 21:43:39 +0000
commite37b38d7d66898d35f9c092a06588d4ebb3a425b (patch)
tree33ff62b7ab0bb7a8c335ce2b9e00332f72774cd5 /gcc/cppmacro.c
parentf9d09ae5bb74df042e5214c1a88392621204f177 (diff)
downloadgcc-e37b38d7d66898d35f9c092a06588d4ebb3a425b.zip
gcc-e37b38d7d66898d35f9c092a06588d4ebb3a425b.tar.gz
gcc-e37b38d7d66898d35f9c092a06588d4ebb3a425b.tar.bz2
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
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r--gcc/cppmacro.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cppmacro.c b/gcc/cppmacro.c
index c5bb71e..3ce44be 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 = &macro->expansion[i];