Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Harald Koenig <koenig@tat.physik.uni-tuebingen.de>
Subject: libc-0.43 ECOFF fp problems
Date: Tue, 10 Sep 1996 12:22:55 +0200 (MET DST)	[thread overview]
Message-ID: <199609101646.SAA00844@ceres.tat.physik.uni-tuebingen.de> (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

                 reply	other threads:[~1996-09-10 10:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox