LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sh4_inhibit_libc_check.diff of Package orig-gcc44 (Project Ports:ARM:Base:build:cross)

2009-02-04  Andrew Stubbs  <ams@...>

        gcc/
        * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.

Index: src/gcc-mainline/gcc/config/sh/linux-unwind.h
===================================================================
--- src/gcc-mainline/gcc/config/sh/linux-unwind.h.orig
+++ src/gcc-mainline/gcc/config/sh/linux-unwind.h
@@ -27,7 +27,10 @@ the Free Software Foundation, 51 Frankli
 Boston, MA 02110-1301, USA.  */
 
 /* Do code reading to identify a signal frame, and set the frame
-   state data appropriately.  See unwind-dw2.c for the structs.  */
+   state data appropriately.  See unwind-dw2.c for the structs.
+   Don't use this at all if inhibit_libc is used.  */
+
+#ifndef inhibit_libc
 
 #include <signal.h>
 #include <sys/ucontext.h>
@@ -251,3 +254,5 @@ sh_fallback_frame_state (struct _Unwind_
   return _URC_NO_REASON;
 }
 #endif /* defined (__SH5__) */
+
+#endif /* inhibit_libc */