From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199609101646.SAA00844@ceres.tat.physik.uni-tuebingen.de> Date: Tue, 10 Sep 1996 12:22:55 +0200 (MET DST) From: Harald Koenig Subject: libc-0.43 ECOFF fp problems is there an easier way to fix the fp problems for the two examples below for a clean RH303 system other than installing a recent ELF gcc (which would require new gcc, libc, ELF kernel support, milo for ELF kernel etc.) ? the two small programs below give a SIGFPE for gcc-2.7.1 + libc-0.43 (rh303) but work fine with recent ELF devutils. ------------------------------------------------------------------------------- #include #include #include void main() { char *arg = "1.e-305"; printf("%s -> %g\n", arg, atof(arg)); } ------------------------------------------------------------------------------- #include #include #include void main() { double x,y,z; char *arg = "12.34"; x = atof(arg); y = modf(x, &z); printf("%g -> %g + %g\n", x,z,y); } ------------------------------------------------------------------------------- -- All SCSI disks will from now on ___ _____ be required to send an email notice 0--,| /OOOOOOO\ 24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\ \ \/OOOOOOOOOOOOOOO\ \ OOOOOOOOOOOOOOOOO|// Harald Koenig, \/\/\/\/\/\/\/\/\/ Inst.f.Theoret.Astrophysik // / \\ \ koenig@tat.physik.uni-tuebingen.de ^^^^^ ^^^^^ -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null