[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#148529: ada/6911: Sin and Cos returns bad result or exception



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 <bam@snoopy.apana.org.au>



Reply to: