mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 02:59:05 +08:00
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
This commit is contained in:
parent
9900f597fa
commit
1ce4a39d07
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user