1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-18 05:13:56 +02:00
openwrt-packages/devel/gcc/patches-10.x/003-dont-choke-when-building-32bit-on-64bit.patch
Christian Marangi 4d9ec853be
devel: gcc: refresh patches
Refresh patches with make package/gcc/refresh by tweaking the
GCC_VERSION to refresh every supported version.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-04-11 13:48:13 +02:00

14 lines
461 B
Diff

--- a/gcc/real.h
+++ b/gcc/real.h
@@ -77,8 +77,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