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: BUG: g++ 3.x.x -fomit-frame-pointer: exception handling doesn't work


On Thu, Aug 12, 2004 at 01:55:14PM +0200, Gwenole Beauchesne wrote:
> 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.

What if configure without --disable-libunwind-exceptions?

BTW, my test does not segfault, but just exits thru abort.


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