85b6744df7e265fa94bcdffc5d36dde0f9dadd13
[feed/packages.git] / devel / gcc / patches-8.x / 003-dont-choke-when-building-32bit-on-64bit.patch
1 diff -u --recursive gcc-8.4.0-vanilla/gcc/real.h gcc-8.4.0/gcc/real.h
2 --- gcc-8.4.0-vanilla/gcc/real.h 2020-03-04 02:30:01.000000000 -0600
3 +++ gcc-8.4.0/gcc/real.h 2022-05-18 17:02:22.708820427 -0500
4 @@ -70,8 +70,10 @@
5 + (REAL_VALUE_TYPE_SIZE%HOST_BITS_PER_WIDE_INT ? 1 : 0)) /* round up */
6
7 /* Verify the guess. */
8 +#ifndef __LP64__
9 extern char test_real_width
10 [sizeof (REAL_VALUE_TYPE) <= REAL_WIDTH * sizeof (HOST_WIDE_INT) ? 1 : -1];
11 +#endif
12
13 /* Calculate the format for CONST_DOUBLE. We need as many slots as
14 are necessary to overlay a REAL_VALUE_TYPE on them. This could be