exceptions and optimization
Peter Schmid
schmid@ltoi.iap.physik.tu-darmstadt.de
Thu Nov 20 16:56:00 GMT 1997
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
More information about the Gcc
mailing list