possible bug in gcc-2.95.xxx on ultrasparc Solaris 2.7 with mcpu=ultrasparc
robert somerville
somervil@cadvision.com
Thu Oct 28 07:44:00 GMT 1999
I have built gcc 2.95 & gcc 2.95.2 on my Solaris 2.7 (7) machine an Ultra 1.
when running the nbench utility found at :
www.tux.org/~mayer/linux/bmark.html I consistently get a BUS error, this does not occur
with EGCS 1.1.2
the CFLAG I use is gcc -DLINUX -s -static -Wall -O3 -mcpu=ultrasparc
The offending option seems to be -mcpu=ultrasparc.
Compiling with -DLINUX -s -static -Wall -O3 -mcpu=supersparc results in no bus error !
[redwood]{488}[nbench-byte-2.1]: gmake
gcc -DLINUX -s -static -Wall -O3 -mcpu=ultrasparc\
-c emfloat.c
gcc -DLINUX -s -static -Wall -O3 -mcpu=ultrasparc\
-c misc.c
gcc -DLINUX -s -static -Wall -O3 -mcpu=ultrasparc\
-c nbench0.c
gcc -DLINUX -s -static -Wall -O3 -mcpu=ultrasparc\
-c nbench1.c
gcc -DLINUX -s -static -Wall -O3 -mcpu=ultrasparc\
-c sysspec.c
gcc -DLINUX -s -static -Wall -O3 -mcpu=ultrasparc \
emfloat.o misc.o nbench0.o nbench1.o sysspec.o\
-o nbench -lm
[redwood]{489}[nbench-byte-2.1]: gcc --version
2.95.2
[redwood]{490}[nbench-byte-2.1]: ./nbench
BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)
TEST : Iterations/sec. : Old Index : New Index
: : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
Bus error (core dumped)
--
robert somerville
Geophysicist / Geophysical Programmer
More information about the Gcc-bugs
mailing list