This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
exceptions and optimization
- To: egcs at cygnus dot com
- Subject: exceptions and optimization
- From: Peter Schmid <schmid at ltoi dot iap dot physik dot tu-darmstadt dot de>
- Date: Fri, 21 Nov 1997 01:20:30 +0100 (MEST)
I suggest turning optimization on in the g++ testsuite when checking
exception handling.
The following files in the directory
egcs-971114/gcc/testsuite/g++.old-deja/g++.mike execute correctly
when optimization is off but fail with -O.
g++ -O eh8.C
./a.out
IOT trap/Abort
g++ -O eh20.C
./a.out
IOT trap/Abort
g++ -O eh21.C
./a.out
IOT trap/Abort
g++ -O eh24.C
./a.out
IOT trap/Abort
g++ -O eh24.C
./a.out
IOT trap/Abort
g++ -O eh29.C
./a.out
IOT trap/Abort
g++ -O eh30.C
./a.out
IOT trap/Abort
g++ -O p9706.C
./a.out
Segmentation Fault
peter:/dos/peter/ftp/gcc/egcs-971114/gcc/testsuite/g++.old-deja/g++.mike/test$
g++ -v
Reading specs from /usr/local/lib/gcc-lib/i386-pc-linux-gnulibc1/egcs-2.90.17/specs
gcc version egcs-2.90.17 971114 (gcc2-970802 experimental).
My canonical target name is i386-pc-linux-gnulibc1.
I am using libc-5.4.40 and binutils-2.8.1.0.15.
Peter Schmid