This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] framestate.c breaks when gcc is compiled with --enable-sjlj-exceptions
- From: Carlos O'Donell <carlos at baldric dot uwo dot ca>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 22 Apr 2003 12:17:19 -0400
- Subject: [PATCH] framestate.c breaks when gcc is compiled with --enable-sjlj-exceptions
- References: <20030421195349.GD21964@systemhalted>
> 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 at baldric dot uwo dot 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 */