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]
Other format: [Raw text]

Re: catch(...) and forced unwind


I'd just like to add that yet another reason to go with 
explicit rethrows instead of implicit rethrows is that
the compiler expects that

	catch (...) { }

consumes all exceptions, and so will DCE EH cleanups for
objects in outer scopes of the same function.  Disabling
this optimization is almost certainly a bad idea.


r~


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