diff options
author | Ziemowit Laski <zlaski@apple.com> | 2004-08-25 23:39:11 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2004-08-25 23:39:11 +0000 |
commit | c34be55ec57157e7607728b303ba74a913cfc79f (patch) | |
tree | d46c9e1ac1b4f312097b3dbe8888b855482fd0fe /gcc/c-decl.c | |
parent | cb7930898721b14def216a5cf3b8bd619b1dbc52 (diff) | |
download | gcc-c34be55ec57157e7607728b303ba74a913cfc79f.zip gcc-c34be55ec57157e7607728b303ba74a913cfc79f.tar.gz gcc-c34be55ec57157e7607728b303ba74a913cfc79f.tar.bz2 |
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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index e9a9036..6630d9a 100644 --- a/gcc/c-decl.c +++ b/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. */ |