patches/gcc/4.3.5/350-sh-without-headers.patch
changeset 2124 5dd0b83ae528
parent 1461 35b30f8fb307
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.3.5/350-sh-without-headers.patch	Sun Sep 19 18:37:18 2010 +0200
     1.3 @@ -0,0 +1,29 @@
     1.4 +Original patch from: ../4.3.2/350-sh-without-headers.patch
     1.5 +
     1.6 +-= BEGIN original header =-
     1.7 +On 20081011, Khem RAJ writes:
     1.8 + You have to bar gcc trying to build unwinding at stage 1. Try the
     1.9 + attached patch and see if it helps.
    1.10 +
    1.11 + gcc/config/sh/linux-unwind.h |    3 +++
    1.12 + 1 file changed, 3 insertions(+)
    1.13 +
    1.14 +-= END original header =-
    1.15 +
    1.16 +diff -durN gcc-4.3.3.orig/gcc/config/sh/linux-unwind.h gcc-4.3.3/gcc/config/sh/linux-unwind.h
    1.17 +--- gcc-4.3.3.orig/gcc/config/sh/linux-unwind.h	2007-09-12 08:59:06.000000000 +0200
    1.18 ++++ gcc-4.3.3/gcc/config/sh/linux-unwind.h	2009-01-27 22:28:57.000000000 +0100
    1.19 +@@ -26,6 +26,8 @@
    1.20 + the Free Software Foundation, 51 Franklin Street, Fifth Floor,
    1.21 + Boston, MA 02110-1301, USA.  */
    1.22 + 
    1.23 ++#ifndef inhibit_libc
    1.24 ++
    1.25 + /* Do code reading to identify a signal frame, and set the frame
    1.26 +    state data appropriately.  See unwind-dw2.c for the structs.  */
    1.27 + 
    1.28 +@@ -251,3 +253,4 @@
    1.29 +   return _URC_NO_REASON;
    1.30 + }
    1.31 + #endif /* defined (__SH5__) */
    1.32 ++#endif /* ifndef inhibit_libc */