From aa2e6789a8d729f7d00bbc4b090514bc2400399e Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Wed, 13 Oct 1993 20:40:41 +0000 Subject: [PATCH] (initdcl, notype_initdcl): Call decl_attributes before init as well as after. From-SVN: r5779 --- gcc/c-parse.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 2d6c965..a271195 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1019,6 +1019,7 @@ maybeasm: initdcl: declarator maybeasm maybe_attribute '=' { $$ = start_decl ($1, current_declspecs, 1); + decl_attributes ($$, $3); start_init ($$, $2, global_bindings_p ()); } init /* Note how the declaration of the variable is in effect while its init is parsed! */ @@ -1034,6 +1035,7 @@ initdcl: notype_initdcl: notype_declarator maybeasm maybe_attribute '=' { $$ = start_decl ($1, current_declspecs, 1); + decl_attributes ($$, $3); start_init ($$, $2, global_bindings_p ()); } init /* Note how the declaration of the variable is in effect while its init is parsed! */ -- 2.7.4