From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30022 invoked by alias); 18 Nov 2002 03:46:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30004 invoked by uid 71); 18 Nov 2002 03:46:04 -0000 Date: Fri, 22 Nov 2002 13:59:00 -0000 Message-ID: <20021118034603.30003.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Brian May Subject: Re: ada/6911: Sin and Cos returns bad result or exception Reply-To: Brian May X-SW-Source: 2002-11/txt/msg00861.txt.bz2 List-Id: The following reply was made to PR ada/6911; it has been noted by GNATS. From: Brian May To: Joakim Olsson Cc: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, 148529@bugs.debian.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Subject: Re: ada/6911: Sin and Cos returns bad result or exception Date: Mon, 18 Nov 2002 14:46:24 +1100 On Thu, Nov 14, 2002 at 11:23:28AM +0100, Joakim Olsson wrote: > I have'nt a clue where this mail is going so bare with me (I'm a newbie to gcc ;-) It come to me, and the Debian BTS (148529@bugs.debian.org). Presumably it also went into the gcc GNATS system. The nobody@gcc.gnu.org address looks kind of funny... > This package implements Sin and Cos and other stuff with assambler-instructions > and not uses interface to the C-functions in libm.a. The assembler code appears to be exactly the same on gnat 3.14p, where it works. In fact, I think the whole file is the same. > I don't know why but,,, well the assambler doesn't work. I suspect that support for any assembler code is badly broken, but my knowledge of assembler code in Ada is somewhat flakey. I tried moving the assembler code to me source code, but it stopped working even with gnat 3.14p, which was perviously working. It wouldn't surprise me if the assembler code is working, but for some reason that parameters aren't getting passed to/from the Ada code. At one stage I did look at this using a debugger and viewing the assembler code, but I couldn't see anything that looked obviously wrong. > In the rpm from Ada for Linux Team the version uses interface to > C-functions and that version seems to work. > > > PSIf I've done something wrong by posting this mail, pleas don't Nothing wrong that I am aware of. > hesitate to tell me. Is there a simple solution out there ??? please > tell me. DS Create interfaces to the C-functions? Use gnat 3.14? Sorry, these are the only two solutions I know of (not tested the first one myself). -- Brian May