aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-parse.y
diff options
context:
space:
mode:
authorMumit Khan <khan@xraylith.wisc.edu>1999-04-26 22:35:58 +0000
committerJeff Law <law@gcc.gnu.org>1999-04-26 16:35:58 -0600
commit112cedb09bddd98884385587645c29b8e74f8d74 (patch)
treec9d8d72b54f7984a833af5e59598af96cdf50578 /gcc/c-parse.y
parent0f92adae3249f90e0b2e6cf5c16990f6140a6ea1 (diff)
downloadgcc-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.y4
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. */