aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-03-09 21:31:02 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-03-09 21:31:02 -0500
commit7665dfd47b8e9220414fd00ba8d6f9894de64ab7 (patch)
tree52914da9923f8c5e1d8ba0416f746d052d3b3f1d /gcc
parent8fcf10c01f414c9d40d41e783caad3cba9fd7b05 (diff)
downloadgcc-7665dfd47b8e9220414fd00ba8d6f9894de64ab7.zip
gcc-7665dfd47b8e9220414fd00ba8d6f9894de64ab7.tar.gz
gcc-7665dfd47b8e9220414fd00ba8d6f9894de64ab7.tar.bz2
(start_function): Handle new parameter ATTRIBUTES.
From-SVN: r9147
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-decl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 0b3bb17..621e71d 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -5924,7 +5924,7 @@ build_enumerator (name, value)
}
/* Create the FUNCTION_DECL for a function definition.
- DECLSPECS and DECLARATOR are the parts of the declaration;
+ DECLSPECS, DECLARATOR, and ATTRIBUTES are the parts of the declaration;
they describe the function's name and the type it returns,
but twisted together in a fashion that parallels the syntax of C.
@@ -5938,8 +5938,8 @@ build_enumerator (name, value)
NESTED is nonzero for a function nested within another function. */
int
-start_function (declspecs, declarator, nested)
- tree declarator, declspecs;
+start_function (declspecs, declarator, attributes, nested)
+ tree declarator, declspecs, attributes;
int nested;
{
tree decl1, old_decl;
@@ -5964,6 +5964,9 @@ start_function (declspecs, declarator, nested)
if (decl1 == 0)
return 0;
+ if (attributes)
+ decl_attributes (decl1, NULL_TREE, attributes);
+
announce_function (decl1);
if (TYPE_SIZE (TREE_TYPE (TREE_TYPE (decl1))) == 0)