aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-04-25 16:06:00 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-04-25 16:06:00 -0400
commit99ac47b5d2a8ce1cf512a505879d6fedcec89308 (patch)
tree19f13f3f32fad3839bf3aefd17e5849cc00ae62b /gcc
parent17ea663341d6a003a9557966687297a3fe7987f6 (diff)
downloadgcc-99ac47b5d2a8ce1cf512a505879d6fedcec89308.zip
gcc-99ac47b5d2a8ce1cf512a505879d6fedcec89308.tar.gz
gcc-99ac47b5d2a8ce1cf512a505879d6fedcec89308.tar.bz2
(initdcl, notype_initdcl): Pass attributes to start_decl; delete call
to decl_attributes. From-SVN: r9442
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-parse.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 318601e..747d3ef 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1038,24 +1038,24 @@ maybeasm:
initdcl:
declarator maybeasm maybe_attribute '='
- { $<ttype>$ = start_decl ($1, current_declspecs, 1);
- decl_attributes ($<ttype>$, $3, prefix_attributes);
+ { $<ttype>$ = start_decl ($1, current_declspecs, 1,
+ $3, prefix_attributes);
start_init ($<ttype>$, $2, global_bindings_p ()); }
init
/* Note how the declaration of the variable is in effect while its init is parsed! */
{ finish_init ();
finish_decl ($<ttype>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 '='
- { $<ttype>$ = start_decl ($1, current_declspecs, 1);
- decl_attributes ($<ttype>$, $3, prefix_attributes);
+ { $<ttype>$ = start_decl ($1, current_declspecs, 1,
+ $3, prefix_attributes);
start_init ($<ttype>$, $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 ($<ttype>5, $3, prefix_attributes);
finish_decl ($<ttype>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