Commit daa6d5ff by Richard Kenner

(start_decl): New args for attributes; call decl_attributes.

From-SVN: r9444
parent c15b1d45
......@@ -3435,9 +3435,10 @@ groktypename_in_parm_context (typename)
int debug_temp_inits = 1;
tree
start_decl (declarator, declspecs, initialized)
start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
tree declarator, declspecs;
int initialized;
tree attributes, prefix_attributes;
{
register tree decl = grokdeclarator (declarator, declspecs,
NORMAL, initialized);
......@@ -3531,6 +3532,9 @@ start_decl (declarator, declspecs, initialized)
if (TREE_CODE (decl) == FUNCTION_DECL)
gen_aux_info_record (decl, 0, 0, TYPE_ARG_TYPES (TREE_TYPE (decl)) != 0);
/* Set attributes here so if duplicate decl, will have proper attributes. */
decl_attributes (decl, attributes, prefix_attributes);
/* Add this decl to the current binding level.
TEM may equal DECL or it may be a previous decl of the same name. */
tem = pushdecl (decl);
......
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