aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2004-10-05 05:02:49 +0000
committerGeoffrey Keating <geoffk@apple.com>2004-10-05 05:02:49 +0000
commit6a92b0981a94d2a175f0e4f26d31ad01977998ee (patch)
tree27496ccbd62d55be601fd3c262e14c15052914f3
parent387f71e2a7618d60da412052013aa3bd11dd2e57 (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
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/c-decl.c6
-rw-r--r--gcc/c-tree.h2
3 files changed, 11 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 203bf7e9c09..98896f030a8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2004-10-04 Geoffrey Keating <geoffk@apple.com>
+
+ * 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'.
+
2004-09-30 Geoffrey Keating <geoffk@apple.com>
General changes that apply to every file listed:
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);
}
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 556dcc22c28..076e5342a64 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -230,7 +230,7 @@ enum c_declarator_kind {
struct c_arg_info {
/* A list of parameter decls. */
tree parms;
- /* A list of structure, union and enum tags defined. */
+ /* A list of structure, union and enum types defined. */
tree tags;
/* A list of argument types to go in the FUNCTION_TYPE. */
tree types;