This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exception Specifications & code quality
- To: martin at mira dot isdn dot cs dot tu-berlin dot de (Martin von Loewis), egcs at cygnus dot com
- Subject: Re: Exception Specifications & code quality
- From: Jason Merrill <jason at cygnus dot com>
- Date: 08 Sep 1998 14:32:26 -0700
- References: <35F0120A.5119@acm.org> <199809051927.VAA26610.cygnus.egcs@mira.isdn.cs.tu-berlin.de>
>>>>> 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