summaryrefslogtreecommitdiff
path: root/gcc/c-decl.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-14 12:07:24 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-06-14 12:07:24 +0000
commite62f363b2e71d469aaf7e85945e8fc1f6d6e9210 (patch)
tree7a618078c63898507c5dbd1726c64f1c222581da /gcc/c-decl.c
parent261dd1b5c074e8a9b4ac1a66e05160238dd97b8e (diff)
downloadgcc-e62f363b2e71d469aaf7e85945e8fc1f6d6e9210.tar.gz
(start_function): New parameter for attributes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9943 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r--gcc/c-decl.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c
index 4c83552a958..20ca6ad1ac6 100644
--- a/gcc/c-decl.c
+++ b/gcc/c-decl.c
@@ -5948,8 +5948,8 @@ build_enumerator (name, value)
}
/* Create the FUNCTION_DECL for a function definition.
- DECLSPECS, DECLARATOR, and ATTRIBUTES are the parts of the declaration;
- they describe the function's name and the type it returns,
+ DECLSPECS, DECLARATOR, PREFIX_ATTRIBUTES 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.
This function creates a binding context for the function body
@@ -5962,8 +5962,8 @@ build_enumerator (name, value)
NESTED is nonzero for a function nested within another function. */
int
-start_function (declspecs, declarator, attributes, nested)
- tree declarator, declspecs, attributes;
+start_function (declspecs, declarator, prefix_attributes, attributes, nested)
+ tree declarator, declspecs, prefix_attributes, attributes;
int nested;
{
tree decl1, old_decl;
@@ -5988,8 +5988,7 @@ start_function (declspecs, declarator, attributes, nested)
if (decl1 == 0)
return 0;
- if (attributes)
- decl_attributes (decl1, NULL_TREE, attributes);
+ decl_attributes (decl1, prefix_attributes, attributes);
announce_function (decl1);