diff options
author | Diego Novillo <dnovillo@redhat.com> | 2004-05-13 06:41:07 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@redhat.com> | 2004-05-13 06:41:07 +0000 |
commit | 60ac8927839c69492fc46bf03880f34820cc0570 (patch) | |
tree | a2568888a519c077427b133de9ece5879a8484a5 /gcc/gengtype-yacc.y | |
parent | fb7359384dbf6f77df81d6bc73b0b5943c52e6d6 (diff) |
Merge tree-ssa-20020619-branch into mainline.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@81764 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gengtype-yacc.y')
-rw-r--r-- | gcc/gengtype-yacc.y | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/gengtype-yacc.y b/gcc/gengtype-yacc.y index f6a9bac2e2e..02136dc0d29 100644 --- a/gcc/gengtype-yacc.y +++ b/gcc/gengtype-yacc.y @@ -212,11 +212,16 @@ struct_fields: { $$ = NULL; } p->line = lexer_line; $$ = p; } + | type ':' bitfieldlen ';' struct_fields + { $$ = $5; } ; bitfieldopt: /* empty */ - | ':' NUM - | ':' ID + | ':' bitfieldlen + ; + +bitfieldlen: NUM | ID + { } ; type: SCALAR |