From 7c42cc363b226d07229def3f41f73548e9c07102 Mon Sep 17 00:00:00 2001 From: zlaski Date: Wed, 25 Aug 2004 23:39:11 +0000 Subject: [gcc/ChangeLog] 2004-08-25 Ziemowit Laski * 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 --- gcc/c-decl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'gcc/c-decl.c') 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. */ -- cgit v1.2.1