This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Optimized code aborts when exception thrown
- From: "Bryan Hunt" <acme at us dot ibm dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Feb 2002 16:55:14 -0600
- Subject: Optimized code aborts when exception thrown
I'm using gcc 3.0.3 with RedHat 7.1 and when I optimize my code, an
exception that is thrown causes an abort instead of being caught. I've
debugged the problem as best I can, and I've determined that the
PERSONALITY_FUNCTION cannot locate the exception handler so it calls
terminate. Is there a known problem with optimization and exception
handling? I see that bug # 5518 describes a similar problem, but is still
open. Are there any suggestions for a possible workaround, or for
something I can look at to see if my code is corrupting a structure that
the unwinding mechanism uses? I've tried to reduce the size of the
testcase, but changing the code significantly causes the problem to go
away.
Regards,
Bryan Hunt
IBM, Austin TX
A good engineer makes the possible a reality; a great engineer makes the
impossible possible.