diff options
author | Richard Stallman <rms@gnu.org> | 1993-03-22 02:03:01 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-03-22 02:03:01 +0000 |
commit | 2fc333529104679c5cb92589d9014a52ffbfbd32 (patch) | |
tree | 7501c5e49147a15ad6e88bca9a8ffac8f6167345 /gcc | |
parent | 52a866cec9e7d35f5cdb1355cce2aa5b03e264d0 (diff) | |
download | gcc-2fc333529104679c5cb92589d9014a52ffbfbd32.zip gcc-2fc333529104679c5cb92589d9014a52ffbfbd32.tar.gz gcc-2fc333529104679c5cb92589d9014a52ffbfbd32.tar.bz2 |
(collect_expansion): Don't make # special in argless macro.
From-SVN: r3818
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |