gcc-4.6.2: Update with patch for gengtype.c
authorjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Wed, 28 Nov 2012 20:03:32 +0000 (28 20:03 +0000)
committerjmcmullan <jmcmullan@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Wed, 28 Nov 2012 20:03:32 +0000 (28 20:03 +0000)
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51969

Signed-off-by: Jason S. McMullan <jason.mcmullan@gmail.com>
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46113 fb15a70f-31f2-0310-bbcc-cdcc74a49acc

tools/crosstools/gcc-4.6.2-aros.diff

index 026c49a..5e0ea04 100644 (file)
@@ -2139,3 +2139,21 @@ diff -ruN gcc-4.6.2/gcc/config/m68k/t-aros gcc-4.6.2.aros/gcc/config/m68k/t-aros
 @@ -0,0 +1,2 @@
 +# Custom multilibs for AROS
 +M68K_MLIB_CPU += && match(MLIB, "^68")
+diff -ruN gcc-4.6.2/gcc/gengtype.c gcc-4.6.2.aros/gcc/gengtype.c
+--- gcc-4.6.2/gcc/gengtype.c   2011-06-27 22:54:59.000000000 +0200
++++ gcc-4.6.2.aros/gcc/gengtype.c      2012-11-28 16:50:17.996003545 +0200
+@@ -3594,13 +3594,13 @@ write_field_root (outf_p f, pair_p v, type_p type, const char *name,
+                 int has_length, struct fileloc *line, const char *if_marked,
+                 bool emit_pch, type_p field_type, const char *field_name)
+ {
++  struct pair newv;
+   /* If the field reference is relative to V, rather than to some
+      subcomponent of V, we can mark any subarrays with a single stride.
+      We're effectively treating the field as a global variable in its
+      own right.  */
+   if (v && type == v->type)
+     {
+-      struct pair newv;
+
+       newv = *v;
+       newv.type = field_type;