patches/glibc/2.2.5/sh-setjmp-fix.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.2.5/sh-setjmp-fix.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +Fixes glibc 'make tests' failure running isomac
     1.5 +
     1.6 +make[2]: *** [/home3/dank/wk/ixos/dap_interim/linux/3rdParty/crosstool/crosstool-0.15/build/sh4-unknown-linux-gnu/gcc-ss-3_3-20030714-glibc-2.2.5/build-glibc/stdlib/isomac.out] Error 2
     1.7 +
     1.8 +isomac.out contains:
     1.9 +...
    1.10 +setjmp.h
    1.11 +#define JB_SIZE (4 * 15)
    1.12 +
    1.13 +See http://sources.redhat.com/ml/libc-hacker/2002-11/msg00009.html
    1.14 +and http://www.schweikhardt.net/isomac.c.html
    1.15 +
    1.16 +===================================================================
    1.17 +RCS file: /cvs/glibc/libc/sysdeps/sh/bits/setjmp.h,v
    1.18 +retrieving revision 1.4
    1.19 +retrieving revision 1.5
    1.20 +diff -u -r1.4 -r1.5
    1.21 +--- libc/sysdeps/sh/bits/setjmp.h	2001/07/06 04:56:03	1.4
    1.22 ++++ libc/sysdeps/sh/bits/setjmp.h	2002/11/06 00:08:30	1.5
    1.23 +@@ -42,7 +42,9 @@
    1.24 +   } __jmp_buf[1];
    1.25 + #endif
    1.26 + 
    1.27 ++#if defined __USE_MISC || defined _ASM
    1.28 + #define JB_SIZE		(4 * 15)
    1.29 ++#endif
    1.30 + 
    1.31 + /* Test if longjmp to JMPBUF would unwind the frame
    1.32 +    containing a local variable at ADDRESS.  */