* libc-0.43 ECOFF fp problems
@ 1996-09-10 10:22 Harald Koenig
0 siblings, 0 replies; only message in thread
From: Harald Koenig @ 1996-09-10 10:22 UTC (permalink / raw)
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 <stdio.h>
#include <stdlib.h>
#include <math.h>
void main()
{
char *arg = "1.e-305";
printf("%s -> %g\n", arg, atof(arg));
}
-------------------------------------------------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1996-09-10 10:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-10 10:22 libc-0.43 ECOFF fp problems Harald Koenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox