summaryrefslogtreecommitdiffstats
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-01-13 11:14:08 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-01-13 11:14:08 +0000
commitd91058312055b41cdacc40c0ab33b43e219fc38d (patch)
tree65ecf83945cc83733f4d3026947a8f776ab0a5f3 /gcc/c-parse.in
parent793272eb2a585807e8b76380dd3d139d785da1c6 (diff)
downloadppe42-gcc-d91058312055b41cdacc40c0ab33b43e219fc38d.tar.gz
ppe42-gcc-d91058312055b41cdacc40c0ab33b43e219fc38d.zip
(maybe_attribute): Allow multiple __attribute__ clauses on a
declaration. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6389 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index f9874418827..29708d6e37f 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -1,5 +1,5 @@
/* YACC parser for C syntax and for Objective C. -*-c-*-
- Copyright (C) 1987, 1988, 1989, 1992, 1993 Free Software Foundation, Inc.
+ Copyright (C) 1987, 88, 89, 92, 93, 1994 Free Software Foundation, Inc.
This file is part of GNU CC.
@@ -1052,8 +1052,8 @@ notype_initdcl:
maybe_attribute:
/* empty */
{ $$ = NULL_TREE; }
- | ATTRIBUTE '(' '(' attribute_list ')' ')'
- { $$ = $4; }
+ | maybe_attribute ATTRIBUTE '(' '(' attribute_list ')' ')'
+ { $$ = chainon ($5, $1); }
;
attribute_list
OpenPOWER on IntegriCloud