Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added patch http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51969

  • Loading branch information...
commit b0b43f1cfe57548ee37382c9d1925b9183e62eeb 1 parent 4e2f939
@Fumon Fumon authored
Showing with 20 additions and 0 deletions.
  1. +19 −0 patches/patch-gcc-gengtype-fix.diff
  2. +1 −0  summon-arm-toolchain
View
19 patches/patch-gcc-gengtype-fix.diff
@@ -0,0 +1,19 @@
+diff --git a/gcc/gengtype.c b/gcc/gengtype.c
+index abf17f8..550d3bb 100644
+--- a/gcc/gengtype.c
++++ b/gcc/gengtype.c
+@@ -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;
View
1  summon-arm-toolchain
@@ -421,6 +421,7 @@ if [ ! -e ${STAMPS}/${GCC}-${NEWLIB}.build ]; then
log "Patching gcc to add multilib support"
cd ${GCC}
patch -p0 -i ../patches/patch-gcc-config-arm-t-arm-elf.diff
+ patch -p1 -i ../patches/patch-gcc-gengtype-fix.diff
patch -p0 -i ../patches/patch-libgcc-divide-exceptions.diff
cd ..
fi
Please sign in to comment.
Something went wrong with that request. Please try again.