aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-10-13 20:40:41 +0000
committerRichard Stallman <rms@gnu.org>1993-10-13 20:40:41 +0000
commitaa2e6789a8d729f7d00bbc4b090514bc2400399e (patch)
tree0fcdf91d8cb58905755c03075af009005205ea18 /gcc
parentf825b10f843a36e6dad9151f5318745880556826 (diff)
downloadgcc-aa2e6789a8d729f7d00bbc4b090514bc2400399e.zip
gcc-aa2e6789a8d729f7d00bbc4b090514bc2400399e.tar.gz
gcc-aa2e6789a8d729f7d00bbc4b090514bc2400399e.tar.bz2
(initdcl, notype_initdcl): Call decl_attributes
before init as well as after. From-SVN: r5779
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-parse.in2
1 files changed, 2 insertions, 0 deletions
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 '='
{ $<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! */