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:
Ziemowit Laski 2004-08-25 23:39:11 +00:00 committed by Ziemowit Laski
parent cb79308987
commit c34be55ec5
3 changed files with 20 additions and 0 deletions

View File

@ -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

View File

@ -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. */

View File

@ -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);