This is the mail archive of the gcc@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: DWARF-2 Exception Handling in C++: Please Help!


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!


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