diff options
author | Neil Booth <neilb@earthling.net> | 2000-11-06 18:47:21 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2000-11-06 18:47:21 +0000 |
commit | 56051c0abd9ba1c659367b4e3530ae073d0bb9ba (patch) | |
tree | 92556c6429345eea986b00db5544fee1713007a7 /gcc | |
parent | 6c53ebffc53b500722f4de9ad4c225ee199c5ca6 (diff) | |
download | gcc-56051c0abd9ba1c659367b4e3530ae073d0bb9ba.zip gcc-56051c0abd9ba1c659367b4e3530ae073d0bb9ba.tar.gz gcc-56051c0abd9ba1c659367b4e3530ae073d0bb9ba.tar.bz2 |
cpplex.c (_cpp_equiv_tokens): Check arg_no in the CPP_MACRO_ARG case.
* cpplex.c (_cpp_equiv_tokens): Check arg_no in the
CPP_MACRO_ARG case.
From-SVN: r37277
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cpplex.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 725d11e..8a2fb0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2000-11-06 Neil Booth <neilb@earthling.net> + * cpplex.c (_cpp_equiv_tokens): Check arg_no in the + CPP_MACRO_ARG case. + +2000-11-06 Neil Booth <neilb@earthling.net> + * c-lex.c (c_lex): Replace tok.val.aux with tok.val.c or tok.val.arg_no as appropriate. * cppexp.c (lex): Similarly. diff --git a/gcc/cpplex.c b/gcc/cpplex.c index c77ed91..eab49ff 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -1433,7 +1433,7 @@ _cpp_equiv_tokens (a, b) case SPELL_CHAR: return a->val.c == b->val.c; /* Character. */ case SPELL_NONE: - return (a->type != CPP_MACRO_ARG || a->val.c == b->val.c); + return (a->type != CPP_MACRO_ARG || a->val.arg_no == b->val.arg_no); case SPELL_IDENT: return a->val.node == b->val.node; case SPELL_STRING: |