ada/9911: gnatmake fails to link when GCC configured with --w

John David Anglin dave@hiauly1.hia.nrc.ca
Mon Mar 3 04:25:00 GMT 2003


> 2003-03-03  Danny Smith  <dannysmith@users.sourceforge.net>
> 
>        * raise.c (_Unwind_RaiseException): New function to wrap
> _Unwind_SjLj_RaiseException
>        for sjlj eh model.

Based on the comment in raise.c, I don't think the fix is
correct although there probably does need to be a stub for
_Unwind_SjLj_RaiseException in raise.c.  We also need to fix the
call issued from a-except.adb.  This is actually what caused the
link failure in the PR.  raise.o isn't in libgnat.a.

I hacked a-except.adb and raise.c use to use _Unwind_SjLj_RaiseException
but not being familiar with ada I'm not sure how to conditionalize the ada
code.  I'm also not set up to test the exception support in it.

I suspect the same problem affects the hpux ports which use sjlj
exceptions by default.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Gcc-bugs mailing list