OSDN Git Service

(initdcl, notype_initdcl): Call decl_attributes
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Oct 1993 20:40:41 +0000 (20:40 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Oct 1993 20:40:41 +0000 (20:40 +0000)
before init as well as after.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@5779 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-parse.in

index 2d6c965..a271195 100644 (file)
@@ -1019,6 +1019,7 @@ maybeasm:
 initdcl:
          declarator maybeasm maybe_attribute '='
                { $<ttype>$ = start_decl ($1, current_declspecs, 1);
+                 decl_attributes ($<ttype>$, $3);
                  start_init ($<ttype>$, $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 '='
                { $<ttype>$ = start_decl ($1, current_declspecs, 1);
+                 decl_attributes ($<ttype>$, $3);
                  start_init ($<ttype>$, $2, global_bindings_p ()); }
          init
 /* Note how the declaration of the variable is in effect while its init is parsed! */