This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: single precision complex bug in g77 - was Testing g77 with LAPACK 3.0
- To: Jim Wilson <wilson at cygnus dot com>
- Subject: Re: single precision complex bug in g77 - was Testing g77 with LAPACK 3.0
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Thu, 08 Jul 1999 22:53:45 +0200
- CC: "Billinghurst, David (RTD)" <David dot Billinghurst at riotinto dot com dot au>, "'egcs-bugs at egcs dot cygnus dot com'" <egcs-bugs at egcs dot cygnus dot com>, craig at jcb-sc dot com
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <199907080032.RAA26170@rtl.cygnus.com>
Jim Wilson wrote:
[ Sigh ]
> Without optimization, it is a calling convention problem. We try to pass
> a single precision complex to the function cabs1.0, which requires loading
> two SFmode values.
...
> which emits two loads into the same register when x is a register big
> enough to hold the entire complex value. This code can work for registers
> only if the register is equal to or smaller than one half the size of the
> complex type.
In other words, for 32-bit targets.
> The problem can probably be fixed in either area. It isn't clear which is
> best. We need to make sure that we emit correct ABI compliant code for this
> case which may constrain the possible solutions.
Do you think it can be fixed in time for the release (of gcc-2.95) ?
This is clearly a show-stopper ... Not being able to run the LAPACK
tests successfully on 64-bit targets will make us the laughing stock of
the Galaxy (at least the Fortran Galaxy).
If not, we *have* to revert to -femulate-complex in the Fortran
Frontend.
[ Another Sigh ]
--
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://world.std.com/~burley/g77.html