From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d26c6b989a75af31 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-11 08:23:18 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: zhenggen@public1.ptt.js.cn (zhenggen) Newsgroups: comp.lang.ada Subject: Re: Problems with gcc, gnat and RedHat 8 Date: 11 Oct 2002 08:23:17 -0700 Organization: http://groups.google.com/ Message-ID: <7bc8e94c.0210110723.1f5509b9@posting.google.com> References: NNTP-Posting-Host: 202.102.94.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1034349798 7986 127.0.0.1 (11 Oct 2002 15:23:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 11 Oct 2002 15:23:18 GMT Xref: archiver1.google.com comp.lang.ada:29719 Date: 2002-10-11T15:23:18+00:00 List-Id: > ** 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.