This is the mail archive of the gcc-bugs@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]

[Bug c++/53294] Optimize out some exception code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53294

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-05-09
     Ever Confirmed|0                           |1

--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-09 13:55:37 UTC ---
Certainly interesting.  We lower things too early into __cxa calls though
(I think) to make this work easily.

Consider cases like

struct X { int i; };

int foo (void)
{
  try {
    X x;
    x.i = 5;
    throw x;
  } catch (X& x) {
      return x.i;
  } catch (...) {
   return 0;
   }
}


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