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]

Re: other/10778: Exception handling seems to fail on a powerpc using GCC 3.2.3powerpc-eabi cross compiler


When throwing an exception the (see attachment 'main.cpp') the call to the
constructor of the class that handles the exception is done well (see
attachment 'exception #1.gif').

After construction, the related 'catch' part should be called. Looking
into the generated assembly by the powerpc-eabi GCC v3.x, the exception
handling part does not seem to find the catch part. The exception seems to
fail after calling 'uw_frame_state_for' (see attachment 'exception
#1.gif'). The exception is aborted because the 'bne- 0x225f8
<uw_init_context_1+160>' is taken (the abort function is called).

Cheers,
Marwijn

Attachment: exception #1.gif
Description: GIF image

Attachment: exception #2.gif
Description: GIF image

Attachment: main.cpp
Description: Binary data

Attachment: Version information powerpc-eabi-gcc v3.2.3.txt
Description: Text document


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