mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-29 23:04:12 +08:00
c-decl.c (grokparm): New function.
[gcc/ChangeLog] 2004-08-25 Ziemowit Laski <zlaski@apple.com> * c-decl.c (grokparm): New function. * c-tree.h (grokparm): New prototype. From-SVN: r86587
This commit is contained in:
parent
cb79308987
commit
c34be55ec5
@ -1,3 +1,8 @@
|
||||
2004-08-25 Ziemowit Laski <zlaski@apple.com>
|
||||
|
||||
* c-decl.c (grokparm): New function.
|
||||
* c-tree.h (grokparm): New prototype.
|
||||
|
||||
2004-08-25 Andrew MacLeod <amacleod@redhat.com>
|
||||
|
||||
* tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
|
||||
|
14
gcc/c-decl.c
14
gcc/c-decl.c
@ -3153,6 +3153,20 @@ finish_decl (tree decl, tree init, tree asmspec_tree)
|
||||
}
|
||||
}
|
||||
|
||||
/* Given a parsed parameter declaration, decode it into a PARM_DECL. */
|
||||
|
||||
tree
|
||||
grokparm (tree parm)
|
||||
{
|
||||
tree decl = grokdeclarator (TREE_VALUE (TREE_PURPOSE (parm)),
|
||||
TREE_PURPOSE (TREE_PURPOSE (parm)),
|
||||
PARM, false, NULL);
|
||||
|
||||
decl_attributes (&decl, TREE_VALUE (parm), 0);
|
||||
|
||||
return decl;
|
||||
}
|
||||
|
||||
/* Given a parsed parameter declaration, decode it into a PARM_DECL
|
||||
and push that on the current scope. */
|
||||
|
||||
|
@ -180,6 +180,7 @@ extern tree get_parm_info (bool);
|
||||
extern tree grokfield (tree, tree, tree);
|
||||
extern tree groktypename (tree);
|
||||
extern tree groktypename_in_parm_context (tree);
|
||||
extern tree grokparm (tree);
|
||||
extern tree implicitly_declare (tree);
|
||||
extern void keep_next_level (void);
|
||||
extern tree lookup_name (tree);
|
||||
|
Loading…
Reference in New Issue
Block a user