This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: single precision complex bug in g77 - was Testing g77 with LAPACK 3.0


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]