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: Exception Specifications & code quality


>>>>> 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


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