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

[email protected]
Newsgroups gmane.comp.gcc.bugs,gmane.comp.gcc.prs,gmane.comp.gcc.prs
Message-ID <[email protected]>
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
exception #1.gif (image/gif, 24.6 KB) - not displayed
exception #2.gif (image/gif, 26 KB) - not displayed
main.cpp (application/octet-stream, 1.3 KB) - not displayed
Version information powerpc-eabi-gcc v3.2.3.txt (text/plain, 414 B)
Reading specs from ./../lib/gcc-lib/powerpc-eabi/3.2.3/specs
Configured with: ../gcc-3.2.3/configure --target=powerpc-eabi --prefix=/Tools/H-i686-pc-cygwin --enable-languages=c,c++ --disable-shared --with-cpu=powerpc --with-gnu-as --with-gnu-ld --with-newlib --with-local-prefix=/Tools/H-i686-pc-cygwin/powerpc-eabi --with-headers=/Tools/H-i686-pc-cygwin/powerpc-eabi/include
Thread model: single
gcc version 3.2.3
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.