summaryrefslogtreecommitdiff
path: root/cross/nios2-gcc3/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'cross/nios2-gcc3/patches/patch-ab')
-rw-r--r--cross/nios2-gcc3/patches/patch-ab52
1 files changed, 52 insertions, 0 deletions
diff --git a/cross/nios2-gcc3/patches/patch-ab b/cross/nios2-gcc3/patches/patch-ab
new file mode 100644
index 00000000000..607e9a3820f
--- /dev/null
+++ b/cross/nios2-gcc3/patches/patch-ab
@@ -0,0 +1,52 @@
+$NetBSD: patch-ab,v 1.1 2013/11/16 07:41:00 mef Exp $
+
+Based on the suggenstion from TNT (www.trans-nt.com)
+Thanks locore64 (at) alkyltechnology.com for the info.
+
+--- gcc/c-parse.y.orig 2006-03-06 12:57:18.000000000 +0900
++++ gcc/c-parse.y 2010-11-24 12:10:18.000000000 +0900
+@@ -1647,34 +1647,34 @@
+
+ structsp_attr:
+ 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
+- { $$ = finish_struct ($<ttype>4, nreverse ($5),
++ { $<ttype>$ = finish_struct ($<ttype>4, nreverse ($5),
+ chainon ($1, $7)); }
+ | struct_head '{' component_decl_list '}' maybe_attribute
+- { $$ = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
++ { $<ttype>$ = finish_struct (start_struct (RECORD_TYPE, NULL_TREE),
+ nreverse ($3), chainon ($1, $5));
+ }
+ | union_head identifier '{'
+- { $$ = start_struct (UNION_TYPE, $2); }
++ { $<ttype>$ = start_struct (UNION_TYPE, $2); }
+ component_decl_list '}' maybe_attribute
+- { $$ = finish_struct ($<ttype>4, nreverse ($5),
++ { $<ttype>$ = finish_struct ($<ttype>4, nreverse ($5),
+ chainon ($1, $7)); }
+ | union_head '{' component_decl_list '}' maybe_attribute
+- { $$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
++ { $<ttype>$ = finish_struct (start_struct (UNION_TYPE, NULL_TREE),
+ nreverse ($3), chainon ($1, $5));
+ }
+ | enum_head identifier '{'
+- { $$ = start_enum ($2); }
++ { $<ttype>$ = start_enum ($2); }
+ enumlist maybecomma_warn '}' maybe_attribute
+- { $$ = finish_enum ($<ttype>4, nreverse ($5),
++ { $<ttype>$ = finish_enum ($<ttype>4, nreverse ($5),
+ chainon ($1, $8)); }
+ | enum_head '{'
+- { $$ = start_enum (NULL_TREE); }
++ { $<ttype>$ = start_enum (NULL_TREE); }
+ enumlist maybecomma_warn '}' maybe_attribute
+- { $$ = finish_enum ($<ttype>3, nreverse ($4),
++ { $<ttype>$ = finish_enum ($<ttype>3, nreverse ($4),
+ chainon ($1, $7)); }
+ ;
+