Commit 5730cf69 by Richard Kenner

(start_function): New parameter for attributes.

From-SVN: r9943
parent 866890d9
...@@ -5948,8 +5948,8 @@ build_enumerator (name, value) ...@@ -5948,8 +5948,8 @@ build_enumerator (name, value)
} }
/* Create the FUNCTION_DECL for a function definition. /* Create the FUNCTION_DECL for a function definition.
DECLSPECS, DECLARATOR, and ATTRIBUTES are the parts of the declaration; DECLSPECS, DECLARATOR, PREFIX_ATTRIBUTES and ATTRIBUTES are the parts of
they describe the function's name and the type it returns, 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. but twisted together in a fashion that parallels the syntax of C.
This function creates a binding context for the function body This function creates a binding context for the function body
...@@ -5962,8 +5962,8 @@ build_enumerator (name, value) ...@@ -5962,8 +5962,8 @@ build_enumerator (name, value)
NESTED is nonzero for a function nested within another function. */ NESTED is nonzero for a function nested within another function. */
int int
start_function (declspecs, declarator, attributes, nested) start_function (declspecs, declarator, prefix_attributes, attributes, nested)
tree declarator, declspecs, attributes; tree declarator, declspecs, prefix_attributes, attributes;
int nested; int nested;
{ {
tree decl1, old_decl; tree decl1, old_decl;
...@@ -5988,8 +5988,7 @@ start_function (declspecs, declarator, attributes, nested) ...@@ -5988,8 +5988,7 @@ start_function (declspecs, declarator, attributes, nested)
if (decl1 == 0) if (decl1 == 0)
return 0; return 0;
if (attributes) decl_attributes (decl1, prefix_attributes, attributes);
decl_attributes (decl1, NULL_TREE, attributes);
announce_function (decl1); announce_function (decl1);
......
...@@ -303,7 +303,8 @@ extern void shadow_record_fields PROTO((tree)); ...@@ -303,7 +303,8 @@ extern void shadow_record_fields PROTO((tree));
extern void shadow_tag PROTO((tree)); extern void shadow_tag PROTO((tree));
extern void shadow_tag_warned PROTO((tree, int)); extern void shadow_tag_warned PROTO((tree, int));
extern tree start_enum PROTO((tree)); extern tree start_enum PROTO((tree));
extern int start_function PROTO((tree, tree, tree, int)); extern int start_function PROTO((tree, tree, tree,
tree, int));
extern tree start_decl PROTO((tree, tree, int, extern tree start_decl PROTO((tree, tree, int,
tree, tree)); tree, tree));
extern tree start_struct PROTO((enum tree_code, tree)); extern tree start_struct PROTO((enum tree_code, tree));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment