diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-05-02 18:10:52 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-05-02 18:10:52 +0000 |
commit | 1ce4a39d078a6d0439df6cb17835f62dff57140f (patch) | |
tree | 3bfadf0c9e5b7958feca43ae41b27e0cf6943d93 /gcc | |
parent | 9900f597fa923f84cb0bc44d7383c79e6aed543b (diff) | |
download | gcc-1ce4a39d078a6d0439df6cb17835f62dff57140f.zip gcc-1ce4a39d078a6d0439df6cb17835f62dff57140f.tar.gz gcc-1ce4a39d078a6d0439df6cb17835f62dff57140f.tar.bz2 |
cpphash.c (collect_params): Fix off-by-one error.
* cpphash.c (collect_params): Fix off-by-one error.
(dump_hash_helper): Dump all four macro nodetypes.
From-SVN: r33613
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cpphash.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c751b6f..020031c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-05-02 Zack Weinberg <zack@wolery.cumb.org> + + * cpphash.c (collect_params): Fix off-by-one error. + (dump_hash_helper): Dump all four macro nodetypes. + 2000-05-02 Jakub Jelinek <jakub@redhat.com> * cpphash.c (trad_stringify): Adjust p after stringification as diff --git a/gcc/cpphash.c b/gcc/cpphash.c index 3fcd006..8684b65 100644 --- a/gcc/cpphash.c +++ b/gcc/cpphash.c @@ -804,7 +804,7 @@ collect_params (pfile, list, arglist) argv[a].len = len; argv[a].name = p; argv[a].rest_arg = 0; - p += len; + p += len + 1; a++; break; @@ -1934,7 +1934,8 @@ dump_hash_helper (h, p) HASHNODE *hp = (HASHNODE *)*h; cpp_reader *pfile = (cpp_reader *)p; - if (hp->type == T_MACRO) + if (hp->type == T_MACRO || hp->type == T_FMACRO + || hp->type == T_IDENTITY || hp->type == T_EMPTY) _cpp_dump_definition (pfile, hp); return 1; } |