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]

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.


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