Bug in gcc-2.95 Sparc/Solaris
Andreas Gerstlauer
andreas@gerstlauer.de
Sun Jun 27 14:18:00 GMT 1999
Hi!
I ran into a problem when trying the latest snapshot of the
upcoming gcc-2.95 release on our Sun Ultra5 machine.
It's a standard installation of the compiler ("configure"
without any special options, "make bootstrap-lean").
The problem does only happen with optimizations enabled (-O2)
and CPU type >= "v8" (-mcpu=v8).
The corresponding set of C++ files is enclosed below as a gzip'ed
tar attachment.
Here's the log:
% gtar xzf bugcode.tar.gz
% uname -a
SunOS specc.ics.uci.edu 5.5.1 Generic_103640-27 sun4u sparc SUNW,Ultra-5_10
% g++ -v
Reading specs from /opt/contrib/egcs-19990623/lib/gcc-lib/sparc-sun-solaris2.5.
1/gcc-2.95/specs
gcc version gcc-2.95 19990623 (prerelease)
% g++ -DSPARC -DSOLARIS -mcpu=v8 -fno-implicit-templates -O2 -c -Wall -I.
-DDEBUG -fimplicit-templates -o bit_debug.o bit.cc
bit.cc: In function `bool testOp(short int, short int, long int, long int,
long long int, long long int)':
bit.cc:813: Could not find a spill register
(insn 7373 7376 7380 (parallel[
(set (mem:SI (plus:SI (reg:SI 30 %fp)
(const_int -19012 [0xffffb5bc])) 0)
(div:SI (reg/v:SI 110)
(reg/v:SI 111)))
(clobber (scratch:SI))
] ) 314 {divsi3} (nil)
(expr_list:REG_UNUSED (scratch:SI)
(nil)))
If there any additional questions or tests I can run here, feel
free to contact me!
Regards,
Andreas
--
Andreas Gerstlauer gerstlauer@ics.uci.edu
http://www.ics.uci.edu/~gerstl
More information about the Gcc-bugs
mailing list