aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-12 07:09:47 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-12 07:09:47 -0400
commit005979f2d65214802177bf932930463db2f3b020 (patch)
treec0b75e3825028f0580dff57c29e07e67fda16255
parentee2897efdb1fe6e538265cc12ba0ce58dcbaf2c5 (diff)
downloadgcc-005979f2d65214802177bf932930463db2f3b020.zip
gcc-005979f2d65214802177bf932930463db2f3b020.tar.gz
gcc-005979f2d65214802177bf932930463db2f3b020.tar.bz2
(push_parm_decl): Pass any attributes to decl_attributes.
From-SVN: r9639
-rw-r--r--gcc/c-decl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 8d90e5e7..db990350 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -3888,7 +3888,10 @@ push_parm_decl (parm)
/* The corresponding pop_obstacks is in finish_decl. */
push_obstacks_nochange ();
- decl = grokdeclarator (TREE_VALUE (parm), TREE_PURPOSE (parm), PARM, 0);
+ decl = grokdeclarator (TREE_VALUE (TREE_PURPOSE (parm)),
+ TREE_PURPOSE (TREE_PURPOSE (parm)), PARM, 0);
+ decl_attributes (decl, TREE_VALUE (TREE_VALUE (parm)),
+ TREE_PURPOSE (TREE_VALUE (parm)));
#if 0
if (DECL_NAME (decl))