gcc: Add patch that fixes a build error when building a 32bit toolchain on 64bit...
authorChristian Beier <dontmind@freeshell.org>
Tue, 8 Jul 2014 12:48:40 +0000 (14:48 +0200)
committerChristian Beier <dontmind@freeshell.org>
Sun, 10 Aug 2014 11:59:20 +0000 (13:59 +0200)
Signed-off-by: Christian Beier <dontmind@freeshell.org>
devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch [new file with mode: 0644]

diff --git a/devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch b/devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch
new file mode 100644 (file)
index 0000000..8472960
--- /dev/null
@@ -0,0 +1,15 @@
+diff --git a/gcc/real.h b/gcc/real.h
+index 2ff84f6..fbb4b0e 100644
+--- a/gcc/real.h
++++ b/gcc/real.h
+@@ -72,8 +72,10 @@ struct GTY(()) real_value {
+    + (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */
+ /* Verify the guess.  */
++#ifndef __LP64__
+ extern char test_real_width
+   [sizeof(REAL_VALUE_TYPE) <= REAL_WIDTH*sizeof(HOST_WIDE_INT) ? 1 : -1];
++#endif
+ /* Calculate the format for CONST_DOUBLE.  We need as many slots as
+    are necessary to overlay a REAL_VALUE_TYPE on them.  This could be