[PATCH] framestate.c breaks when gcc is compiled with --enable-sjlj-exceptions
Carlos O'Donell
carlos@baldric.uwo.ca
Tue Apr 22 20:36:00 GMT 2003
> > 2003-04-22 Carlos O'Donell Jr. <carlos@baldric.uwo.ca>
> >
> > * sysdeps/generic/unwind-dw2.c: Remove #ifndef
> > __USING_SJLJ_EXCEPTIONS__ so compat code is always included.
>
> This file comes from gcc, we only make a few local modifications to
> improve code quality, but nothing as consequential as this. You'll have
> to bring this up with the gcc crowd, they have to change their copy.
> Then we'll take the changes.
It's a problem with glibc. If the compiler is using sjlj then all the
unwind-dw2.c code is removed (see the cpp docs for builtin compiler
#defines). We don't pull in the opposite side of
"#ifndef __USING_SJLJ_EXCEPTIONS__" from the file "gcc/gcc/unwind-sjlj.c"
So the solution _could_ be to pull the sjlj code that defines
__frame_state_for (gcc/gcc/unwind-sjlj.c:uw_frame_state_for).
I wish the problem could go away, but it's not going to disappear until
gcc-3.4 (transition for hppa to DWARF2).
c.
More information about the Libc-alpha
mailing list