delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/22/17:09:10

To: Andreas Henning <d2henan AT dtek DOT chalmers DOT se>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: GO32 bug? (Or am I very wrong?)
Date: Wed, 22 Dec 93 13:57:24 PST
From: Jonathan Ryshpan <jon AT halsp DOT hitachi DOT com>

>I have defined a class for complex numbers, but as soon as a call
>a function with a complex type as an argument, I get a FP exception.
>(eg, abs(z), where z is of the type complex, generates an exception.)

I get a similar problem under gcc-2.5.5 running under ISC Unix on a i486
PC.  Very likely this is because of the following, taken from PROBLEMS
in the gcc-2.5.5 FSF distribution:

    124. On the 386, bad code results from foo (bar ()) when bar
    returns a double, because the pseudo used fails to get preferenced
    into an fp reg because of the distinction between regs 8 and 9.

We'll probably have to wait till the FSF fixes this.

Good Luck:

Jonathan Ryshpan                <jon AT halsp DOT hitachi DOT com>

	===============> I write for myself ONLY. <===============

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019