ada/9911: gnatmake fails to link when GCC configured with --with-sjlj-exceptions=yes
Danny Smith
dannysmith@clear.net.nz
Mon Mar 3 03:11:00 GMT 2003
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=g
cc&pr=9911
This patch (against 3.3 branch) fixes.
2003-03-03 Danny Smith <dannysmith@users.sourceforge.net>
* raise.c (_Unwind_RaiseException): New function to wrap
_Unwind_SjLj_RaiseException
for sjlj eh model.
Index: raise.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/raise.c,v
retrieving revision 1.5
diff -c -3 -p -r1.5 raise.c
*** raise.c 23 Oct 2002 07:33:28 -0000 1.5
--- raise.c 3 Mar 2003 03:02:55 -0000
*************** __gnat_eh_personality (version, actions,
*** 596,601 ****
--- 596,611 ----
return _URC_INSTALL_CONTEXT;
}
+ /* If __USING_SJLJ_EXCEPTIONS__ _Unwind_SjLj_RaiseException is
exported
+ from libgcc.a */
+ #ifdef __USING_SJLJ_EXCEPTIONS__
+ _Unwind_Reason_Code
+ _Unwind_RaiseException (e)
+ struct _Unwind_Exception *e;
+ {
+ return _Unwind_SjLj_RaiseException (e);
+ }
+ #endif
#else /* IN_RTS - For eh personality routine */
More information about the Gcc-bugs
mailing list