浏览代码

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>
Christian Beier 10 年前
父节点
当前提交
9ff77b0000
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15
    0
      devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch

+ 15
- 0
devel/gcc/patches/002-dont-choke-when-building-32bit-on-64bit.patch 查看文件

@@ -0,0 +1,15 @@
1
+diff --git a/gcc/real.h b/gcc/real.h
2
+index 2ff84f6..fbb4b0e 100644
3
+--- a/gcc/real.h
4
++++ b/gcc/real.h
5
+@@ -72,8 +72,10 @@ struct GTY(()) real_value {
6
+    + (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */
7
+ 
8
+ /* Verify the guess.  */
9
++#ifndef __LP64__
10
+ extern char test_real_width
11
+   [sizeof(REAL_VALUE_TYPE) <= REAL_WIDTH*sizeof(HOST_WIDE_INT) ? 1 : -1];
12
++#endif
13
+ 
14
+ /* Calculate the format for CONST_DOUBLE.  We need as many slots as
15
+    are necessary to overlay a REAL_VALUE_TYPE on them.  This could be