1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gcc/4.2.1/290-sh-without-headers.patch Wed May 09 18:17:17 2012 +0200
1.3 @@ -0,0 +1,26 @@
1.4 +On 20081011, Khem RAJ writes:
1.5 + You have to bar gcc trying to build unwinding at stage 1. Try the
1.6 + attached patch and see if it helps.
1.7 +
1.8 + gcc/config/sh/linux-unwind.h | 3 +++
1.9 + 1 file changed, 3 insertions(+)
1.10 +
1.11 +Index: gcc-4_2-branch/gcc/config/sh/linux-unwind.h
1.12 +===================================================================
1.13 +--- gcc-4_2-branch.orig/gcc/config/sh/linux-unwind.h 2008-07-01 17:24:40.000000000 -0700
1.14 ++++ gcc-4_2-branch/gcc/config/sh/linux-unwind.h 2008-07-01 17:25:47.000000000 -0700
1.15 +@@ -26,6 +26,8 @@ along with this program; see the file CO
1.16 + the Free Software Foundation, 51 Franklin Street, Fifth Floor,
1.17 + Boston, MA 02110-1301, USA. */
1.18 +
1.19 ++#ifndef inhibit_libc
1.20 ++
1.21 + /* Do code reading to identify a signal frame, and set the frame
1.22 + state data appropriately. See unwind-dw2.c for the structs. */
1.23 +
1.24 +@@ -251,3 +253,4 @@ sh_fallback_frame_state (struct _Unwind_
1.25 + return _URC_NO_REASON;
1.26 + }
1.27 + #endif /* defined (__SH5__) */
1.28 ++#endif /* ifndef inhibit_libc */
1.29 +