BUG: g++ 3.x.x -fomit-frame-pointer: exception handling doesn't work
Gwenole Beauchesne
gbeauchesne@mandrakesoft.com
Thu Aug 12 11:59:00 GMT 2004
On Wed, 11 Aug 2004, James E Wilson wrote:
> > BTW: Wich arch the asm is optimized for?
>
> I didn't do anything special. configure picked i686-pc-linux-gnu as the
> configure tuple.
I could reproduce it as follows with pristine gcc 3.4-branch:
[gb@n2 gcc]$ ./xgcc -v
Using built-in specs.
Configured with: ../configure --enable-shared --enable-threads=posix
--disable-checking --enable-long-long --enable-__cxa_atexit
--enable-clocale=gnu --disable-libunwind-exceptions
--enable-languages=c,c++ --host=i586-pc-linux-gnu
Thread model: posix
gcc version 3.4.2 20040812 (prerelease)
[gb@n2 gcc]$ ./g++ -B $PWD ~/vrac/exceptions.cpp -L
../i586-pc-linux-gnu/libstdc++-v3/src/.libs -O2 -fomit-frame-pointer
[gb@n2 gcc]$ ./a.out
Segmentation fault
with --host=i686-pc-linux-gnu, his testcase passes.
More information about the Gcc
mailing list