diff options
author | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-25 23:39:11 +0000 |
---|---|---|
committer | zlaski <zlaski@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-25 23:39:11 +0000 |
commit | 7c42cc363b226d07229def3f41f73548e9c07102 (patch) | |
tree | d46c9e1ac1b4f312097b3dbe8888b855482fd0fe /gcc/c-decl.c | |
parent | 2db44db6f640b5293f246d571592596fc9e30c5f (diff) | |
download | ppe42-gcc-7c42cc363b226d07229def3f41f73548e9c07102.tar.gz ppe42-gcc-7c42cc363b226d07229def3f41f73548e9c07102.zip |
[gcc/ChangeLog]
2004-08-25 Ziemowit Laski <zlaski@apple.com>
* c-decl.c (grokparm): New function.
* c-tree.h (grokparm): New prototype.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86587 138bc75d-0d04-0410-961f-82ee72b054a4
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 e9a9036e5ee..6630d9a3488 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. */ |