aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-08-08 17:42:40 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-08-08 17:42:40 +0000
commite60bf9d4f97a321bd1147853ab143fd93d12401c (patch)
tree1fc773b8a3cbcbc980aa5a7951f4ab0aea73bce5 /gcc/c-tree.h
parent4f8c876d4305f863ebccf6b0905be4d8a8d99be6 (diff)
downloadgcc-e60bf9d4f97a321bd1147853ab143fd93d12401c.zip
gcc-e60bf9d4f97a321bd1147853ab143fd93d12401c.tar.gz
gcc-e60bf9d4f97a321bd1147853ab143fd93d12401c.tar.bz2
c-tree.h (c_arg_tag): Define.
* 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. From-SVN: r163013
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 984b597..745dd05 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)