From 8cc43e85be4b30b46db45687fafea46097c45c0f Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Wed, 28 Nov 2012 20:03:32 +0000 Subject: [PATCH] gcc-4.6.2: Update with patch for gengtype.c See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51969 Signed-off-by: Jason S. McMullan 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 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tools/crosstools/gcc-4.6.2-aros.diff b/tools/crosstools/gcc-4.6.2-aros.diff index 026c49a45e..5e0ea047fb 100644 --- a/tools/crosstools/gcc-4.6.2-aros.diff +++ b/tools/crosstools/gcc-4.6.2-aros.diff @@ -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; -- 2.11.4.GIT