[PATCH] framestate.c breaks when gcc is compiled with --enable-sjlj-exceptions
Carlos O'Donell
carlos@baldric.uwo.ca
Tue Apr 22 16:16:00 GMT 2003
> In sysdeps/generic/framestate.c there is a reliance on being able to
> pull in a fall-back "__frame_state_for" this is not the case when sjlj
> exception handling is enabled in gcc, as the included unwind-dw2.c
> is empty (#ifndef __USING_SJLJ_EXCEPTIONS__)
Possible solution, tested on x86, hppa and alpha, no regressions.
I attempted to test a solution where "abort()" is used as the fallback
function if unwind-dw2.c does not provide anything. This didn't work
because we still need _Unwind_GetDataRelBase, _Unwind_GetTextRelBase,
and _Unwind_GetRegionStart.
c.
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.
Index: sysdeps/generic/unwind-dw2.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/generic/unwind-dw2.c,v
retrieving revision 1.5
diff -u -p -r1.5 unwind-dw2.c
--- sysdeps/generic/unwind-dw2.c 14 Apr 2003 08:52:24 -0000 1.5
+++ sysdeps/generic/unwind-dw2.c 22 Apr 2003 16:07:55 -0000
@@ -38,9 +38,6 @@
#include "gthr.h"
#endif
-
-#ifndef __USING_SJLJ_EXCEPTIONS__
-
#ifndef STACK_GROWS_DOWNWARD
#define STACK_GROWS_DOWNWARD 0
#else
@@ -1253,4 +1250,3 @@ uw_identify_context (struct _Unwind_Cont
#include "unwind.inc"
#endif /* _LIBC */
-#endif /* !USING_SJLJ_EXCEPTIONS */
More information about the Libc-alpha
mailing list