This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: DWARF-2 Exception Handling in C++: Please Help!
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: gcc at gcc dot gnu dot org, rmathew at hotmail dot com
- Date: Fri, 22 Nov 2002 08:30:36 +1100 (EST)
- Subject: 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!