This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: sjlj-exceptions ICE. simplified test case


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~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]