aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/gcc/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-28 19:52:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-28 19:52:09 +0000
commit83a487c4123bbc1a8da408648e5a567da52b6d6f (patch)
treecd7a1a8d0f3075b3f7a0acf2218ece2b6c2b016a /toolchain/gcc/patches
parent031f500ae4cfcd16e8bc6790d190cf6873134a2b (diff)
downloadupstream-83a487c4123bbc1a8da408648e5a567da52b6d6f.tar.gz
upstream-83a487c4123bbc1a8da408648e5a567da52b6d6f.tar.bz2
upstream-83a487c4123bbc1a8da408648e5a567da52b6d6f.zip
fix gcc 4.2.0 compile for ppc
SVN-Revision: 7761
Diffstat (limited to 'toolchain/gcc/patches')
-rw-r--r--toolchain/gcc/patches/4.2.0/307-long_double_fix.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/toolchain/gcc/patches/4.2.0/307-long_double_fix.patch b/toolchain/gcc/patches/4.2.0/307-long_double_fix.patch
new file mode 100644
index 0000000000..1229bdc1bd
--- /dev/null
+++ b/toolchain/gcc/patches/4.2.0/307-long_double_fix.patch
@@ -0,0 +1,26 @@
+Index: gcc-4.2.0/gcc/config/rs6000/darwin-ldouble.c
+===================================================================
+--- gcc-4.2.0.orig/gcc/config/rs6000/darwin-ldouble.c 2007-06-28 20:56:39.222667344 +0200
++++ gcc-4.2.0/gcc/config/rs6000/darwin-ldouble.c 2007-06-28 20:57:02.258165416 +0200
+@@ -49,9 +49,10 @@
+
+ This code currently assumes big-endian. */
+
+-#if ((!defined (__NO_FPRS__) || defined (_SOFT_FLOAT)) \
++#if (defined (__LONG_DOUBLE_128__) && \
++ ((!defined (__NO_FPRS__) || defined (_SOFT_FLOAT)) \
+ && !defined (__LITTLE_ENDIAN__) \
+- && (defined (__MACH__) || defined (__powerpc__) || defined (_AIX)))
++ && (defined (__MACH__) || defined (__powerpc__) || defined (_AIX))))
+
+ #define fabs(x) __builtin_fabs(x)
+ #define isless(x, y) __builtin_isless (x, y)
+@@ -219,7 +220,7 @@
+ return z.ldval;
+ }
+
+-#if defined (_SOFT_FLOAT) && defined (__LONG_DOUBLE_128__)
++#ifdef _SOFT_FLOAT
+
+ long double __gcc_qneg (double, double);
+ int __gcc_qeq (double, double, double, double);