diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-01-13 06:14:08 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-01-13 06:14:08 -0500 |
commit | 06c6bfb17bc6f9677848aa8e3b593ed938143e16 (patch) | |
tree | 65ecf83945cc83733f4d3026947a8f776ab0a5f3 | |
parent | 9f7287cd93b2472aa761b9c26302c70167ada35e (diff) | |
download | gcc-06c6bfb17bc6f9677848aa8e3b593ed938143e16.zip gcc-06c6bfb17bc6f9677848aa8e3b593ed938143e16.tar.gz gcc-06c6bfb17bc6f9677848aa8e3b593ed938143e16.tar.bz2 |
(maybe_attribute): Allow multiple __attribute__ clauses on a
declaration.
From-SVN: r6389
-rw-r--r-- | gcc/c-parse.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index f987441..29708d6 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 |