This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: sjlj-exceptions ICE. simplified test case
- To: Geert Bosch <bosch at gnat dot com>
- Subject: Re: sjlj-exceptions ICE. simplified test case
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 26 Apr 2000 14:10:56 -0700
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Robert Lipe <robertl at sco dot com>
- References: <20000426185448.2E3B434DA1@nile.gnat.com>
On Wed, Apr 26, 2000 at 02:55:44PM -0400, Geert Bosch wrote:
> What case are you talking about? AFAIK, it is the case with sjlj that
> for functions that do not handle exceptions the cost is zero...
The case in which we throw, but have no handlers. The overhead
ought to be zero, but it isn't. Consider:
extern double f(double a);
extern double e, value;
void a()
{
if (e == 0)
throw 1;
value = f(e);
}
We get
text data bss dec
261 0 0 261 -fsjlj-exceptions
116 64 0 180 dwarf2 eh
One might simply consider this to be a bug in the implementation...
r~