This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53294] Optimize out some exception code
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 09 May 2012 13:55:37 +0000
- Subject: [Bug c++/53294] Optimize out some exception code
- Auto-submitted: auto-generated
- References: <bug-53294-4@http.gcc.gnu.org/bugzilla/>
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;
}
}