On Tue, Nov 23, 2004 at 09:57:03AM -0800, Darcy Buskermolen wrote:
> I can confirm this behavior on Solaris 8/sparc 64 as well.
gcc 3.4.2 on Solaris 9/sparc 64 appears to be okay.
% gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.4.2
% gcc -m64 test.c
% ./a.out
x = 12.3
y = 12.3
% gcc -O -m64 test.c
% ./a.out
x = 12.3
y = 12.3
% gcc -O2 -m64 test.c
% ./a.out
x = 12.3
y = 12.3
% gcc -O3 -m64 test.c
% ./a.out
x = 12.3
y = 12.3
% file a.out
a.out: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/