mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 20:01:21 +08:00
(start_decl): New args for attributes; call decl_attributes.
From-SVN: r9444
This commit is contained in:
parent
c15b1d4507
commit
daa6d5ffc0
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user