⛏️ index : buildtools.git

author Oliver Tappe <zooey@hirschkaefer.de> 2009-06-29 9:08:34.0 +00:00:00
committer Oliver Tappe <zooey@hirschkaefer.de> 2009-06-29 9:08:34.0 +00:00:00
commit
566b075d9209ac660d7e80b98c8b59ce89a7d84e [patch]
tree
ebc8412205bf7c49f858647f8ca7b1501d297a98
parent
04bfbdfd8fd1040ea2c34c53e8c751b3ed37fa69
download
566b075d9209ac660d7e80b98c8b59ce89a7d84e.tar.gz

* specify type for $$ in order to make newer bison versions happy, such that gcc2 can be compiled on haiku

git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@31308 a95241bf-73f2-0310-859d-f6bbb57e9c96

Diff

 legacy/gcc/gcc/c-parse.y | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/legacy/gcc/gcc/c-parse.y b/legacy/gcc/gcc/c-parse.y
index 40d0ea6..a927ef6 100644
--- a/legacy/gcc/gcc/c-parse.y
+++ b/legacy/gcc/gcc/c-parse.y
@@ -1332,7 +1332,7 @@

structsp:
	  struct_head identifier '{'
		{ $$ = start_struct (RECORD_TYPE, $2);
		{ $<ttype>$ = start_struct (RECORD_TYPE, $2);
		  /* Start scope of tag before parsing components.  */
		}
	  component_decl_list '}' maybe_attribute 
@@ -1344,7 +1344,7 @@
	| struct_head identifier
		{ $$ = xref_tag (RECORD_TYPE, $2); }
	| union_head identifier '{'
		{ $$ = start_struct (UNION_TYPE, $2); }
		{ $<ttype>$ = start_struct (UNION_TYPE, $2); }
	  component_decl_list '}' maybe_attribute
		{ $$ = finish_struct ($<ttype>4, $5, chainon ($1, $7)); }
	| union_head '{' component_decl_list '}' maybe_attribute
@@ -1355,13 +1355,13 @@
		{ $$ = xref_tag (UNION_TYPE, $2); }
	| enum_head identifier '{'
		{ $<itype>3 = suspend_momentary ();
		  $$ = start_enum ($2); }
		  $<ttype>$ = start_enum ($2); }
	  enumlist maybecomma_warn '}' maybe_attribute
		{ $$= finish_enum ($<ttype>4, nreverse ($5), chainon ($1, $8));
		  resume_momentary ($<itype>3); }
	| enum_head '{'
		{ $<itype>2 = suspend_momentary ();
		  $$ = start_enum (NULL_TREE); }
		  $<ttype>$ = start_enum (NULL_TREE); }
	  enumlist maybecomma_warn '}' maybe_attribute
		{ $$= finish_enum ($<ttype>3, nreverse ($4), chainon ($1, $7));
		  resume_momentary ($<itype>2); }