diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1999-04-26 22:35:58 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-04-26 16:35:58 -0600 |
commit | 112cedb09bddd98884385587645c29b8e74f8d74 (patch) | |
tree | c9d8d72b54f7984a833af5e59598af96cdf50578 /gcc/c-parse.y | |
parent | 0f92adae3249f90e0b2e6cf5c16990f6140a6ea1 (diff) | |
download | gcc-112cedb09bddd98884385587645c29b8e74f8d74.zip gcc-112cedb09bddd98884385587645c29b8e74f8d74.tar.gz gcc-112cedb09bddd98884385587645c29b8e74f8d74.tar.bz2 |
c-parse.in (absdcl1): Allow attributes in explicit typespecs.
* c-parse.in (absdcl1): Allow attributes in explicit typespecs.
(%expect): Update.
* c-parse.y: Regenerate.
* c-parse.c: Likewise.
* objc/objc-parse.c: Likewise.
* objc/objc-parse.y: Likewise.
Co-Authored-By: Donn Terry <donn@interix.com>
From-SVN: r26663
Diffstat (limited to 'gcc/c-parse.y')
-rw-r--r-- | gcc/c-parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-parse.y b/gcc/c-parse.y index 59c2be9..bb69dfe 100644 --- a/gcc/c-parse.y +++ b/gcc/c-parse.y @@ -28,7 +28,7 @@ Boston, MA 02111-1307, USA. */ /* To whomever it may concern: I have heard that such a thing was once written by AT&T, but I have never seen it. */ -%expect 46 +%expect 51 /* These are the 23 conflicts you should get in parse.output; the state numbers may vary if minor changes in the grammar are made. @@ -1518,6 +1518,8 @@ absdcl1: /* a nonempty absolute declarator */ { $$ = build_nt (ARRAY_REF, NULL_TREE, NULL_TREE); } /* ??? It appears we have to support attributes here, however using prefix_attributes is wrong. */ + | attributes setattrs absdcl1 + { $$ = $3; } ; /* at least one statement, the first of which parses without error. */ |