Commit 64d08263 by Jim Blandy Committed by Jim Blandy

cppmacro.c (cpp_macro_definition): Do not emit spaces after macro formal parameter names.

* cppmacro.c (cpp_macro_definition): Do not emit spaces after
macro formal parameter names.

From-SVN: r51890
parent 3ca5f444
2002-04-04 Jim Blandy <jimb@redhat.com>
* cppmacro.c (cpp_macro_definition): Do not emit spaces after
macro formal parameter names.
2002-04-04 David S. Miller <davem@redhat.com> 2002-04-04 David S. Miller <davem@redhat.com>
* calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg. * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
......
...@@ -1508,10 +1508,10 @@ cpp_macro_definition (pfile, node) ...@@ -1508,10 +1508,10 @@ cpp_macro_definition (pfile, node)
len = NODE_LEN (node) + 1; /* ' ' */ len = NODE_LEN (node) + 1; /* ' ' */
if (macro->fun_like) if (macro->fun_like)
{ {
len += 3; /* "()" plus possible final "." of named len += 4; /* "()" plus possible final ".." of named
varargs (we have + 2 below). */ varargs (we have + 1 below). */
for (i = 0; i < macro->paramc; i++) for (i = 0; i < macro->paramc; i++)
len += NODE_LEN (macro->params[i]) + 2; /* ", " */ len += NODE_LEN (macro->params[i]) + 1; /* "," */
} }
for (i = 0; i < macro->count; i++) for (i = 0; i < macro->count; i++)
...@@ -1554,7 +1554,10 @@ cpp_macro_definition (pfile, node) ...@@ -1554,7 +1554,10 @@ cpp_macro_definition (pfile, node)
} }
if (i + 1 < macro->paramc) if (i + 1 < macro->paramc)
*buffer++ = ',', *buffer++ = ' '; /* Don't emit a space after the comma here; we're trying
to emit a Dwarf-friendly definition, and the Dwarf spec
forbids spaces in the argument list. */
*buffer++ = ',';
else if (macro->variadic) else if (macro->variadic)
*buffer++ = '.', *buffer++ = '.', *buffer++ = '.'; *buffer++ = '.', *buffer++ = '.', *buffer++ = '.';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment