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]

exceptions and optimization


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



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