Exception handling throw vs. sjthrow

Klaus-Georg Adams Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Mon Jan 26 07:50:00 GMT 1998


Hi,

I have remarked that programs compiled with -fsjlj-exceptions can
throw through C functions, while the range table approach can't.

Is there a way to change this (make the normal way more robust)?

On a related note: It was a Major Pain (TM) to get everything
(including libgcc.a and libstdc++.a) compiled with
-fsjlj-exceptions. It had to be done though, otherwise the programs
using EH would dump core at random places in the runtimelibs. Because
of this the compiler option -fsjlj-exceptions is next to useless.

Couldn't this be made a configuration option, ala --enable-sjlj? My
platform is i686-pc-linux-gnulibc1 (I a not familiar with configure,
otherwise I'd have taken a stab at that). 

-- kga
-------------------------------------------------------------------------
Klaus-Georg Adams        Email: Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Institut f. Anorg. Chemie II                           Tel: 0721 608 3485
Uni Karlsruhe
-------------------------------------------------------------------------



More information about the Gcc mailing list