aboutsummaryrefslogtreecommitdiff
path: root/devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch')
-rw-r--r--devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch b/devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch
new file mode 100644
index 000000000..85b6744df
--- /dev/null
+++ b/devel/gcc/patches-8.x/003-dont-choke-when-building-32bit-on-64bit.patch
@@ -0,0 +1,14 @@
+diff -u --recursive gcc-8.4.0-vanilla/gcc/real.h gcc-8.4.0/gcc/real.h
+--- gcc-8.4.0-vanilla/gcc/real.h 2020-03-04 02:30:01.000000000 -0600
++++ gcc-8.4.0/gcc/real.h 2022-05-18 17:02:22.708820427 -0500
+@@ -70,8 +70,10 @@
+ + (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