diff options
author | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-08 17:42:40 +0000 |
---|---|---|
committer | froydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-08 17:42:40 +0000 |
commit | 9d61f04b037fb797ff38098a9b42aa3b6ba4e286 (patch) | |
tree | 1fc773b8a3cbcbc980aa5a7951f4ab0aea73bce5 /gcc/c-tree.h | |
parent | d13143cf8e7aca9a1b824bb1de88a913a63abccb (diff) | |
download | gcc-9d61f04b037fb797ff38098a9b42aa3b6ba4e286.tar.gz |
* c-tree.h (c_arg_tag): Define. Define a VEC containing it.
(struct c_arg_info): Change type of tags field.
* c-decl.c (grokdeclarator): Update for changed type of tags field.
(get_parm_info): Likewise.
(store_parm_decls_newstyle): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163013 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 984b5975f8d..745dd053a8c 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -295,12 +295,22 @@ enum c_declarator_kind { cdk_attrs }; +typedef struct GTY(()) c_arg_tag_d { + /* The argument name. */ + tree id; + /* The type of the argument. */ + tree type; +} c_arg_tag; + +DEF_VEC_O(c_arg_tag); +DEF_VEC_ALLOC_O(c_arg_tag,gc); + /* Information about the parameters in a function declarator. */ struct c_arg_info { /* A list of parameter decls. */ tree parms; /* A list of structure, union and enum tags defined. */ - tree tags; + VEC(c_arg_tag,gc) *tags; /* A list of argument types to go in the FUNCTION_TYPE. */ tree types; /* A list of non-parameter decls (notably enumeration constants) |