patches/glibc/2.3.3/glibc-2.3.3-unwind-dw2.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 See http://sources.redhat.com/ml/libc-alpha/2004-02/msg00138.html
     2 aka http://sources.redhat.com/cgi-bin/get-raw-msg?listname=libc-alpha&date=2004-02&msgid=20040220044155.GE22135%40baldric.uwo.ca
     3 
     4 In CVS as
     5 wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/generic/unwind-dw2.c.diff?r1=1.7&r2=1.8&cvsroot=glibc'
     6 
     7 Revision 1.8, Sat Feb 21 09:07:29 2004 UTC (5 months, 3 weeks ago) by drepper
     8 
     9 	Allow sjlj enabled compilers to build the code by removing
    10 	__USING_SJLJ_EXCEPTIONS__ wrapper.
    11 
    12 plus
    13 wget 'http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/generic/framestate.c.diff?r1=1.3&r2=1.4&cvsroot=glibc'
    14 
    15 Revision 1.4, Sat Feb 21 09:07:05 2004 UTC (5 months, 3 weeks ago) by drepper
    16 
    17 	[__USING_SJLJ_EXCEPTIONS__] (__frame_state_for): Set frame_State_for
    18 	to abort if the compiler is using sjlj.
    19 
    20 Fixes compile error
    21 
    22 ../sysdeps/generic/framestate.c: In function `__frame_state_for':
    23 ../sysdeps/generic/framestate.c:44: error: `fallback_frame_state_for' undeclared (first use in this function)
    24 ../sysdeps/generic/framestate.c:44: error: (Each undeclared identifier is reported only once
    25 ../sysdeps/generic/framestate.c:44: error: for each function it appears in.)
    26 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
    27 
    28 ===================================================================
    29 RCS file: /cvs/glibc/libc/sysdeps/generic/unwind-dw2.c,v
    30 retrieving revision 1.7
    31 retrieving revision 1.8
    32 diff -u -r1.7 -r1.8
    33 --- libc/sysdeps/generic/unwind-dw2.c	2003/07/22 23:55:55	1.7
    34 +++ libc/sysdeps/generic/unwind-dw2.c	2004/02/21 09:07:29	1.8
    35 @@ -39,7 +39,6 @@
    36  #endif
    37  
    38  
    39 -#ifndef __USING_SJLJ_EXCEPTIONS__
    40  
    41  #ifndef STACK_GROWS_DOWNWARD
    42  #define STACK_GROWS_DOWNWARD 0
    43 @@ -1287,4 +1286,3 @@
    44  #include "unwind.inc"
    45  
    46  #endif /* _LIBC */
    47 -#endif /* !USING_SJLJ_EXCEPTIONS */
    48 ===================================================================
    49 RCS file: /cvs/glibc/libc/sysdeps/generic/framestate.c,v
    50 retrieving revision 1.3
    51 retrieving revision 1.4
    52 diff -u -r1.3 -r1.4
    53 --- libc/sysdeps/generic/framestate.c	2003/01/08 06:46:06	1.3
    54 +++ libc/sysdeps/generic/framestate.c	2004/02/21 09:07:05	1.4
    55 @@ -41,7 +41,11 @@
    56        if (handle == NULL
    57  	  || (frame_state_for
    58  	      = (framesf) __libc_dlsym (handle, "__frame_state_for")) == NULL)
    59 +#ifndef __USING_SJLJ_EXCEPTIONS__
    60  	frame_state_for = fallback_frame_state_for;
    61 +#else
    62 +      	frame_state_for = abort;
    63 +#endif
    64      }
    65  
    66    return frame_state_for (pc, frame_state);