projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52a866c
)
(collect_expansion): Don't make # special in argless macro.
author
Richard Stallman
<rms@gnu.org>
Mon, 22 Mar 1993 02:03:01 +0000
(
02:03
+0000)
committer
Richard Stallman
<rms@gnu.org>
Mon, 22 Mar 1993 02:03:01 +0000
(
02:03
+0000)
From-SVN: r3818
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index 1d48b6276b181903aa5048e0852c5aed65e15172..dc420997f82f59b0bf2dade11c193075d8696f27 100644
(file)
--- a/
gcc/cccp.c
+++ b/
gcc/cccp.c
@@
-5218,12
+5218,12
@@
collect_expansion (buf, end, nargs, arglist)
concat = p;
if (p == limit)
error ("`##' at end of macro definition");
- } else {
+ } else
if (nargs >= 0)
{
/* Single #: stringify following argument ref.
Don't leave the # in the expansion. */
exp_p--;
SKIP_WHITE_SPACE (p);
- if (p == limit || ! is_idstart[*p]
|| nargs <= 0
)
+ if (p == limit || ! is_idstart[*p])
error ("`#' operator is not followed by a macro argument name");
else
stringify = p;