summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-09 05:57:03 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-09 05:57:03 +0000
commitba5c708dcedf321ac015f1ed619c0a7726d6dbe1 (patch)
treed63f3397667d350ffeaeeacbc9a88cf641310782 /sys-devel/gcc/files
parentBumped to version 0.60 as per bug #73532. Thanks to basic <basic@mozdev.org>... (diff)
downloadhistorical-ba5c708dcedf321ac015f1ed619c0a7726d6dbe1.tar.gz
historical-ba5c708dcedf321ac015f1ed619c0a7726d6dbe1.tar.bz2
historical-ba5c708dcedf321ac015f1ed619c0a7726d6dbe1.zip
small patch to fix cross compiling on sh
Diffstat (limited to 'sys-devel/gcc/files')
-rw-r--r--sys-devel/gcc/files/3.4.3/gcc-3.4.3-cross-compile.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/3.4.3/gcc-3.4.3-cross-compile.patch b/sys-devel/gcc/files/3.4.3/gcc-3.4.3-cross-compile.patch
new file mode 100644
index 000000000000..ad4c128209da
--- /dev/null
+++ b/sys-devel/gcc/files/3.4.3/gcc-3.4.3-cross-compile.patch
@@ -0,0 +1,18 @@
+--- gcc/config/sh/linux.h.orig 2004-12-08 23:59:43.001668912 -0500
++++ gcc/config/sh/linux.h 2004-12-09 00:00:22.244703064 -0500
+@@ -154,6 +154,7 @@
+ /* Do code reading to identify a signal frame, and set the frame
+ state data appropriately. See unwind-dw2.c for the structs. */
+
++#ifndef inhibit_libc
+ #ifdef IN_LIBGCC2
+ #include <signal.h>
+ #include <sys/ucontext.h>
+@@ -304,6 +305,7 @@
+
+ #endif /* defined (__SH5__) */
+ #endif /* IN_LIBGCC2 */
++#endif /* inhibit libc */
+
+ /* For SH3 and SH4, we use a slot of the unwind frame which correspond
+ to a fake register number 16 as a placeholder for the return address