summaryrefslogtreecommitdiffstats
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 18:10:52 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-02 18:10:52 +0000
commit43b264ca18937ecf1736ebca08b13bff3eff2cbc (patch)
tree3bfadf0c9e5b7958feca43ae41b27e0cf6943d93 /gcc/cpphash.c
parent8745e06b03da0ec2741a669c5c9eb520928821f3 (diff)
downloadppe42-gcc-43b264ca18937ecf1736ebca08b13bff3eff2cbc.tar.gz
ppe42-gcc-43b264ca18937ecf1736ebca08b13bff3eff2cbc.zip
* cpphash.c (collect_params): Fix off-by-one error.
(dump_hash_helper): Dump all four macro nodetypes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33613 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index 3fcd006962b..8684b65c6d5 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;
}
OpenPOWER on IntegriCloud