changeset 296:803edf50776f

Make gcc build sh without libc. Probably other targets need this too...
author Rob Landley <rob@landley.net>
date Wed, 06 Feb 2008 20:22:55 -0600
parents bbfb6e7bf7e6
children c2139165c76b
files sources/patches/gcc-core-fix-inhibit-libc.patch
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sources/patches/gcc-core-fix-inhibit-libc.patch	Wed Feb 06 20:22:55 2008 -0600
@@ -0,0 +1,18 @@
+diff -ru gcc-core/gcc/config/sh/linux-unwind.h gcc-core/gcc/config/sh/linux-unwind.h
+--- gcc-core/gcc/config/sh/linux-unwind.h	2005-06-28 20:45:37.000000000 -0500
++++ gcc-core/gcc/config/sh/linux-unwind.h	2008-02-06 17:41:12.000000000 -0600
+@@ -26,6 +26,8 @@
+ the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.  */
+ 
++#ifndef inhibit_libc
++
+ /* Do code reading to identify a signal frame, and set the frame
+    state data appropriately.  See unwind-dw2.c for the structs.  */
+ 
+@@ -249,3 +251,5 @@
+   return _URC_NO_REASON;
+ }
+ #endif /* defined (__SH5__) */
++
++#endif