patches/glibc/2.3.3/glibc-2.3.3-unwind-dw2.patch
changeset 330 447b203edc2e
parent 329 419d959441ed
child 331 0c05f9ea3254
     1.1 --- a/patches/glibc/2.3.3/glibc-2.3.3-unwind-dw2.patch	Tue Aug 14 19:32:22 2007 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,66 +0,0 @@
     1.4 -See http://sources.redhat.com/ml/libc-alpha/2004-02/msg00138.html
     1.5 -aka http://sources.redhat.com/cgi-bin/get-raw-msg?listname=libc-alpha&date=2004-02&msgid=20040220044155.GE22135%40baldric.uwo.ca
     1.6 -
     1.7 -In CVS as
     1.8 -wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/generic/unwind-dw2.c.diff?r1=1.7&r2=1.8&cvsroot=glibc'
     1.9 -
    1.10 -Revision 1.8, Sat Feb 21 09:07:29 2004 UTC (5 months, 3 weeks ago) by drepper
    1.11 -
    1.12 -	Allow sjlj enabled compilers to build the code by removing
    1.13 -	__USING_SJLJ_EXCEPTIONS__ wrapper.
    1.14 -
    1.15 -plus
    1.16 -wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/generic/framestate.c.diff?r1=1.3&r2=1.4&cvsroot=glibc'
    1.17 -
    1.18 -Revision 1.4, Sat Feb 21 09:07:05 2004 UTC (5 months, 3 weeks ago) by drepper
    1.19 -
    1.20 -	[__USING_SJLJ_EXCEPTIONS__] (__frame_state_for): Set frame_State_for
    1.21 -	to abort if the compiler is using sjlj.
    1.22 -
    1.23 -Fixes compile error
    1.24 -
    1.25 -../sysdeps/generic/framestate.c: In function `__frame_state_for':
    1.26 -../sysdeps/generic/framestate.c:44: error: `fallback_frame_state_for' undeclared (first use in this function)
    1.27 -../sysdeps/generic/framestate.c:44: error: (Each undeclared identifier is reported only once
    1.28 -../sysdeps/generic/framestate.c:44: error: for each function it appears in.)
    1.29 -make[2]: *** [crosstool-0.28-rc34/build/arm-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/build-glibc/elf/framestate.os] Error 1
    1.30 -
    1.31 -===================================================================
    1.32 -RCS file: /cvs/glibc/libc/sysdeps/generic/unwind-dw2.c,v
    1.33 -retrieving revision 1.7
    1.34 -retrieving revision 1.8
    1.35 -diff -u -r1.7 -r1.8
    1.36 ---- libc/sysdeps/generic/unwind-dw2.c	2003/07/22 23:55:55	1.7
    1.37 -+++ libc/sysdeps/generic/unwind-dw2.c	2004/02/21 09:07:29	1.8
    1.38 -@@ -39,7 +39,6 @@
    1.39 - #endif
    1.40 - 
    1.41 - 
    1.42 --#ifndef __USING_SJLJ_EXCEPTIONS__
    1.43 - 
    1.44 - #ifndef STACK_GROWS_DOWNWARD
    1.45 - #define STACK_GROWS_DOWNWARD 0
    1.46 -@@ -1287,4 +1286,3 @@
    1.47 - #include "unwind.inc"
    1.48 - 
    1.49 - #endif /* _LIBC */
    1.50 --#endif /* !USING_SJLJ_EXCEPTIONS */
    1.51 -===================================================================
    1.52 -RCS file: /cvs/glibc/libc/sysdeps/generic/framestate.c,v
    1.53 -retrieving revision 1.3
    1.54 -retrieving revision 1.4
    1.55 -diff -u -r1.3 -r1.4
    1.56 ---- libc/sysdeps/generic/framestate.c	2003/01/08 06:46:06	1.3
    1.57 -+++ libc/sysdeps/generic/framestate.c	2004/02/21 09:07:05	1.4
    1.58 -@@ -41,7 +41,11 @@
    1.59 -       if (handle == NULL
    1.60 - 	  || (frame_state_for
    1.61 - 	      = (framesf) __libc_dlsym (handle, "__frame_state_for")) == NULL)
    1.62 -+#ifndef __USING_SJLJ_EXCEPTIONS__
    1.63 - 	frame_state_for = fallback_frame_state_for;
    1.64 -+#else
    1.65 -+      	frame_state_for = abort;
    1.66 -+#endif
    1.67 -     }
    1.68 - 
    1.69 -   return frame_state_for (pc, frame_state);