This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] kill TREE_NOT_GIMPLE
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 30 Jan 2004 11:30:16 -0500
- Subject: Re: [tree-ssa] kill TREE_NOT_GIMPLE
- References: <20040130092324.GA28371@redhat.com>
Richard Henderson <rth@redhat.com> writes:
> Index: gengtype-yacc.y
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/gengtype-yacc.y,v
> retrieving revision 1.5.2.4
> diff -c -p -d -r1.5.2.4 gengtype-yacc.y
> *** gengtype-yacc.y 7 May 2003 13:28:05 -0000 1.5.2.4
> --- gengtype-yacc.y 30 Jan 2004 07:41:10 -0000
> *************** struct_fields: { $$ = NULL; }
> *** 212,222 ****
> p->line = lexer_line;
> $$ = p;
> }
> ;
>
> bitfieldopt: /* empty */
> ! | ':' NUM
> ! | ':' ID
> ;
>
> type: SCALAR
> --- 212,226 ----
> p->line = lexer_line;
> $$ = p;
> }
> + | type ':' bitfieldlen ';' struct_fields
> + { $$ = $5; }
> ;
>
> bitfieldopt: /* empty */
> ! | ':' bitfieldlen
> ! ;
> !
> ! bitfieldlen: NUM | ID
> ;
>
> type: SCALAR
Does this build for you? I get an error from bison:
bison -d -o gengtype-yacc.c ../../tree-ssa/gcc/gcc/gengtype-yacc.y
../../tree-ssa/gcc/gcc/gengtype-yacc.y:224: type clash (`' `s') on default action
The error is ignored by make (why?), but no gengtype-yacc.h file is
created. I'm using bison 1.35.
This patch fixes the problem.
Ian
Index: gengtype-yacc.y
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gengtype-yacc.y,v
retrieving revision 1.5.2.5
diff -p -u -r1.5.2.5 gengtype-yacc.y
--- gengtype-yacc.y 30 Jan 2004 09:19:59 -0000 1.5.2.5
+++ gengtype-yacc.y 30 Jan 2004 16:29:09 -0000
@@ -221,6 +221,7 @@ bitfieldopt: /* empty */
;
bitfieldlen: NUM | ID
+ { }
;
type: SCALAR