diff options
author | Akim Demaille <akim@epita.fr> | 2002-06-20 01:30:57 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-06-20 01:30:57 +0000 |
commit | 84d901be21286abad53306a8e883571ca9258676 (patch) | |
tree | 8b5f9fd70b4180372f458c943cf1efac75257426 /gcc/gengtype-yacc.y | |
parent | ef40bc6512a22ab6e963f7c0980bef41082b8fcb (diff) | |
download | gcc-84d901be21286abad53306a8e883571ca9258676.zip gcc-84d901be21286abad53306a8e883571ca9258676.tar.gz gcc-84d901be21286abad53306a8e883571ca9258676.tar.bz2 |
c-parse.in (initelt: identifier ':' initval): Add an empty action to fix a type clash.
2002-06-19 Akim Demaille <akim@epita.fr>
* c-parse.in (initelt: identifier ':' initval): Add an empty
action to fix a type clash.
(aliasdecl, classdef): Add the missing closing `;'.
Whitespace changes.
* gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
$$ = $1 type clashes.
cp:
* parse.y (TYPENAME): Rename as tTYPENAME to avoid the clash with
decl.h's TYPENAME.
* spew.c, lex.c: Adjust.
* parse.y (explicit_instantiation): Add empty action to override
the default $$ = $1 where it introduces a type clash.
From-SVN: r54811
Diffstat (limited to 'gcc/gengtype-yacc.y')
-rw-r--r-- | gcc/gengtype-yacc.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gengtype-yacc.y b/gcc/gengtype-yacc.y index 22a26dd..3ff92d3 100644 --- a/gcc/gengtype-yacc.y +++ b/gcc/gengtype-yacc.y @@ -73,6 +73,7 @@ typedef_struct: ENT_TYPEDEF_STRUCT options '{' struct_fields '}' ID lexer_toplevel_done = 1; } ';' + {} | ENT_STRUCT options '{' struct_fields '}' { new_structure ($1->u.s.tag, UNION_P ($1), &lexer_line, @@ -80,6 +81,7 @@ typedef_struct: ENT_TYPEDEF_STRUCT options '{' struct_fields '}' ID lexer_toplevel_done = 1; } ';' + {} ; externstatic: ENT_EXTERNSTATIC options lasttype ID semiequal |