Exception Specifications & code quality

Jason Merrill jason@cygnus.com
Tue Sep 8 18:05:00 GMT 1998


>>>>> Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:

 >> The code I'm talking about is between LL3 and LL16. I must say, I'm a
 >> little surprised about the exception unwind blocks LLEHB14, LLEHB7 and
 >> LLEHB10 around this, surely the routines __cp_eh_info, __tfc,
 >> __check_eh_spec cannot throw?

 > Good question. __cp_eh_info cannot throw, as far as I can tell.  __tfc
 > calls 'new builtin_type_info', and can throw if it runs out of memory.

Actually, it calls 'new (&slot) builtin_type_info', which cannot throw.

egcs doesn't currently optimize from exception specifications, not even
throw() ones.  Contributions welcome...

Jason



More information about the Gcc mailing list