DWARF-2 Exception Handling in C++: Please Help!

Danny Smith danny_r_smith_2001@yahoo.co.nz
Thu Nov 21 14:49:00 GMT 2002


Ranjit Matthew wrote:

> Here's a simple C++ program that fails with DW2 EH
> on MinGW/GCC 3.2:
> -------------------------- 8< --------------------------
> void __attribute__((stdcall)) test( int a) { a; }
> 
> void snafu( void) {
>    test( 666);
>    throw 999;
> }
> 
> int main( void) {
>    try {
>       snafu( );
>       return 0;
>    } catch( ...) {
>         return 1;
>      }
}


The above still _fails_ on mingw32 GCC 3.3 with 
g++ -mcpu=-i586 -fomit-frame-pointer

but _succeeds_ with
g++ -mcpu=-i686 -fomit-frame-pointer

Danny


http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper
- Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper!



More information about the Gcc mailing list