From: Richard Kenner Date: Tue, 25 Apr 1995 20:06:00 +0000 (-0400) Subject: (initdcl, notype_initdcl): Pass attributes to start_decl; delete call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99ac47b5d2a8ce1cf512a505879d6fedcec89308;p=gcc.git (initdcl, notype_initdcl): Pass attributes to start_decl; delete call to decl_attributes. From-SVN: r9442 --- diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 318601e6b8b..747d3eff54a 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1038,24 +1038,24 @@ maybeasm: initdcl: declarator maybeasm maybe_attribute '=' - { $$ = start_decl ($1, current_declspecs, 1); - decl_attributes ($$, $3, prefix_attributes); + { $$ = start_decl ($1, current_declspecs, 1, + $3, prefix_attributes); start_init ($$, $2, global_bindings_p ()); } init /* Note how the declaration of the variable is in effect while its init is parsed! */ { finish_init (); finish_decl ($5, $6, $2); } | declarator maybeasm maybe_attribute - { tree d = start_decl ($1, current_declspecs, 0); - decl_attributes (d, $3, prefix_attributes); + { tree d = start_decl ($1, current_declspecs, 0, + $3, prefix_attributes); finish_decl (d, NULL_TREE, $2); } ; notype_initdcl: notype_declarator maybeasm maybe_attribute '=' - { $$ = start_decl ($1, current_declspecs, 1); - decl_attributes ($$, $3, prefix_attributes); + { $$ = start_decl ($1, current_declspecs, 1, + $3, prefix_attributes); start_init ($$, $2, global_bindings_p ()); } init /* Note how the declaration of the variable is in effect while its init is parsed! */ @@ -1063,8 +1063,8 @@ notype_initdcl: decl_attributes ($5, $3, prefix_attributes); finish_decl ($5, $6, $2); } | notype_declarator maybeasm maybe_attribute - { tree d = start_decl ($1, current_declspecs, 0); - decl_attributes (d, $3, prefix_attributes); + { tree d = start_decl ($1, current_declspecs, 0, + $3, prefix_attributes); finish_decl (d, NULL_TREE, $2); } ; /* the * rules are dummies to accept the Apollo extended syntax