comp.lang.ada
 help / color / mirror / Atom feed
From: zhenggen@public1.ptt.js.cn (zhenggen)
Subject: Re: Problems with gcc, gnat and RedHat 8
Date: 11 Oct 2002 08:23:17 -0700
Date: 2002-10-11T15:23:18+00:00	[thread overview]
Message-ID: <7bc8e94c.0210110723.1f5509b9@posting.google.com> (raw)
In-Reply-To: ao656o$2fl$1@dolly.uninett.no

> ** sin(x) > 1 ?
> ** What I do wrong here ?  Or something wrong in RH8's Ada ?
> 
> reinert

I have met the same problem. After a careful examination I found that
it maybe caused by the implementation of a-numaux.adb. In early
version of gnat(say 3.13p), there is no such a file.  Spec file
a-numaux.ads declares and imports all math functions from C
library(libmath.a). In GCC 3.2,however, a-numaux.adb is provided and
the functions like sin and cos are implemented using inlined FPU asm
instruction of x86 CPU! There is a bug report about this problem in
gcc bug report database. One can work around it by importing these
functions from C math library.



  parent reply	other threads:[~2002-10-11 15:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-11  9:14 Problems with gcc, gnat and RedHat 8 Reinert Korsnes
2002-10-11 12:14 ` arvids lemchens
2002-10-11 15:23 ` zhenggen [this message]
2002-10-11 16:15   ` Reinert Korsnes
2002-10-14  0:24     ` zhenggen
2002-10-12 10:57 ` Florian Weimer
2002-10-13 10:19   ` Simon Wright
replies disabled

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