diff options
author | jimb <jimb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-19 21:43:39 +0000 |
---|---|---|
committer | jimb <jimb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-19 21:43:39 +0000 |
commit | 920e5093268cb1215d3e1fb2f5c88f0b4c4ecddb (patch) | |
tree | 33ff62b7ab0bb7a8c335ce2b9e00332f72774cd5 /gcc/cppmacro.c | |
parent | 2a9997f36f5c54fae8b914a560a819e393e7a58d (diff) | |
download | ppe42-gcc-920e5093268cb1215d3e1fb2f5c88f0b4c4ecddb.tar.gz ppe42-gcc-920e5093268cb1215d3e1fb2f5c88f0b4c4ecddb.zip |
* cppmacro.c (cpp_macro_definition): Emit a space after the macro
name, even if the replacement list contains no tokens, as required
by Dwarf.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51045 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmacro.c')
-rw-r--r-- | gcc/cppmacro.c | 5 |
1 files changed, 4 insertions, 1 deletions
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]; |