------- Comment #5 from ebotcazou at gcc dot gnu dot org  2006-06-12 18:11 
-------
> Ok, I see.  Thanks for the explanation.  Any reason this is done this way?
> Solaris/SPARC doesn't use this, nor does Linux/x86, so it seems like both
> the Solaris and x86 parts of the code are there.

Short answer: seamless support for synchronous signals.

Long answer: we want to be able to turn synchronous signals into regular Ada
exceptions.  This means unwinding through signal handler frames (easy) and
unwinding through kernel frames (tricky).  With SJLJ exceptions, the latter
turns out to be transparent; but with DWARF-2 EH exceptions, you need specific
support code under the form of MD_FALLBACK_FRAME_STATE_FOR macros, defined in
the *-unwind.h files.  The FSF tree contains some M_F_F_S_F macros, we have
a few more, in particular for SPARC/Solaris but not for x86/Solaris.  We should
already have contributed them, but there is a discrepancy between Java and Ada
in this domain that should be sorted out first.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27937

Reply via email to