Path: utzoo!telly!attcan!uunet!nih-csl!elsie!cvl!haven!purdue!mailrus!tut.cis.ohio-state.edu!CS.UTEXAS.EDU!meyering From: meyering@CS.UTEXAS.EDU Newsgroups: gnu.gcc.bug Subject: Re: sun4-os4 1.34 double truncated to float Message-ID: <8903200255.AA00607@ai.cs.utexas.edu> Date: 20 Mar 89 02:55:30 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15 I recently reported what appears to be a bug in gcc-1.34 where a double is mistakenly truncated to single-precision. I didn't mention that this behavior occurs only when optimizing. % gcc -v -O dbl-flt.c -o dbl-flt gcc version 1.34 /p/lib/gcc-1.34/gcc-cpp -v -undef -D__GNUC__ -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__OPTIMIZE__ dbl-flt.c /tmp/cca00592.cpp GNU CPP version 1.34 /p/lib/gcc-1.34/gcc-cc1 /tmp/cca00592.cpp -quiet -dumpbase dbl-flt.c -O -version -o /tmp/cca00592.s GNU C version 1.34 (sparc) compiled by GNU C version 1.34. as /tmp/cca00592.s -o dbl-flt.o ld -o dbl-flt -e start -dc -dp /lib/crt0.o dbl-flt.o /p/lib/gcc-1.34/gcc-gnulib -lc Jim Meyering meyering@cs.utexas.edu