sjlj-exceptions ICE. simplified test case

Richard Henderson rth@cygnus.com
Wed Apr 26 14:11:00 GMT 2000


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~


More information about the Gcc-patches mailing list