gcc: Add patch that fixes a build error when building a 32bit toolchain on 64bit build machine.

Signed-off-by: Christian Beier <dontmind@freeshell.org>
This commit is contained in:
Christian Beier 2014-07-08 14:48:40 +02:00
parent 41f562c066
commit 9ff77b0000
1 changed files with 15 additions and 0 deletions

View File

@ -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