diff options
author | Geoffrey Keating <geoffk@apple.com> | 2004-10-05 05:02:49 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@apple.com> | 2004-10-05 05:02:49 +0000 |
commit | 6a92b0981a94d2a175f0e4f26d31ad01977998ee (patch) | |
tree | 27496ccbd62d55be601fd3c262e14c15052914f3 /gcc/c-decl.c | |
parent | 387f71e2a7618d60da412052013aa3bd11dd2e57 (diff) |
* c-decl.c (get_parm_info): Don't save b->id in the TREE_PURPOSE
of the list element.
(store_parm_decls_newstyle): Use TYPE_NAME of the type rather than
* c-tree.h (struct c_arg_info): Correct comment for field 'tags'.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/static-tree-branch@88544 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index a6da3f01b6b..d88024e6d81 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -4834,7 +4834,7 @@ get_parm_info (bool ellipsis) } } - tags = tree_cons (b->id, decl, tags); + tags = tree_cons (NULL_TREE, decl, tags); break; case CONST_DECL: @@ -5873,8 +5873,8 @@ store_parm_decls_newstyle (tree fndecl, const struct c_arg_info *arg_info) /* And all the tag declarations. */ for (decl = arg_info->tags; decl; decl = TREE_CHAIN (decl)) - if (TREE_PURPOSE (decl)) - bind (TREE_PURPOSE (decl), TREE_VALUE (decl), current_scope, + if (TYPE_NAME (TREE_VALUE (decl))) + bind (TYPE_NAME (TREE_VALUE (decl)), TREE_VALUE (decl), current_scope, /*invisible=*/false, /*nested=*/false); } |