This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ada/9911: gnatmake fails to link when GCC configured with--with-sjlj-exceptions=yes
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: gcc-gnats at gcc dot gnu dot org, hainque at gnat dot com, gcc-bugs at gcc dot gnu dot org,dave dot anglin at nrc dot ca, nobody at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org
- Date: Mon, 03 Mar 2003 03:12:36 +0000
- Subject: Re: ada/9911: gnatmake fails to link when GCC configured with--with-sjlj-exceptions=yes
- Reply-to: Danny Smith <dannysmith at users dot sourceforge dot net>
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 at users dot sourceforge dot 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 */