This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ada/6911: sin/cos broken on i386
- From: bam at snoopy dot apana dot org dot au
- To: gcc-gnats at gcc dot gnu dot org, debian-gcc at lists dot debian dot org
- Date: Mon, 3 Jun 2002 10:39:52 +1000 (EST)
- Subject: ada/6911: sin/cos broken on i386
- Reply-to: 148529 at bugs dot debian dot org
>Number: 6911
>Category: ada
>Synopsis: Sin and Cos returns bad result or exception
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Sun Jun 02 17:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: bam@snoopy.apana.org.au
>Release: 3.1 (Debian) (Debian unstable)
>Organization:
The Debian Project
>Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii gcc-3.1 3.1-2 The GNU C compiler.
ii g++-3.1 3.1-2 The GNU C++ compiler.
ii libstdc++4 3.1-2 The GNU stdc++ library version 3
ii libstdc++4-dev 3.1-2 The GNU stdc++ library version 3 (developmen
ii binutils 2.12.90.0.7-1 The GNU assembler, linker and binary utiliti
ii libc6 2.2.5-6 GNU C Library: Shared libraries and Timezone
host: i386-linux
configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1ds2/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=$\(prefix\)/share/man --infodir=$\(prefix\)/share/info --with-gxx-include-dir=$\(prefix\)/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux
>Description:
[ Reported to the Debian BTS as report #148529.
Please CC 148529@bugs.debian.org on replies.
Log of report can be found at http://bugs.debian.org/148529 ]
When I try to call sin(x.xx) in my test program, it seems to
return different incorrect results every time. Sometimes I
get NaN returned (at least thats what gdb says; Float'Image gives
"0.E+05"); sometimes it returns 0, other times it generates an
exception (raised CONSTRAINT_ERROR : s-imgrea.adb:236). Whats
weird is that the results of the first call depend on the
total number of calls that appear after the given point in the
program (or something like that).
>How-To-Repeat:
The simple source code can be found in the existing bug report, at
http://bugs.debian.org/148529. If you have problems accessing this, I
can resend it to you.
>Fix:
Use sparc instead of i386 (well... hardly a fix... but
reportedly it does work).
>Release-Note:
>Audit-Trail:
>Unformatted: