This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/25515] broken exceptions with -Os ?
- From: "pluto at agmk dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2005 18:02:55 -0000
- Subject: [Bug other/25515] broken exceptions with -Os ?
- References: <bug-25515-7667@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pluto at agmk dot net 2005-12-21 18:02 -------
if I change the myexception definition to:
struct myexception : public std::exception {};
then testcase will crashe at all optimization levels on i386/amd64.
Program received signal SIGSEGV, Segmentation fault.
0xb7ef7a06 in ?? ()
(gdb) bt
#0 0xb7ef7a06 in ?? ()
#1 0xb7eb42eb in __cxa_throw () from /usr/lib/libstdc++.so.6
#2 0xb7dde6ed in _Unwind_DeleteException () from /lib/libgcc_s.so.1
#3 0xb7eb34e6 in __cxa_end_catch () from /usr/lib/libstdc++.so.6
#4 0x08048777 in main () at main.cpp:25
this backtrace comes from gcc-4.1/i386.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25515