public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/21797] New: complex(4) sqrt failures on alpha-linux
@ 2005-05-28 10:46 fxcoudert at gcc dot gnu dot org
  2005-05-28 14:40 ` [Bug fortran/21797] " kargl at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-05-28 10:46 UTC (permalink / raw)
  To: gcc-bugs

On alpha-linux, I see the following testsuite failures: 

gfortran.dg/f2c_2.f90
gfortran.dg/g77/cabs.f
gfortran.dg/g77/f90-intrinsic-mathematical.f
gfortran.fortran-torture/execute/csqrt_1.f90
gfortran.fortran-torture/execute/intrinsic_abs.f90
gfortran.fortran-torture/execute/math.f90
gfortran.fortran-torture/execute/power.f90

They all have the same cause: SQRT intrinsic doesn't seem to work on
complex(kind=4):

$ cat a.f90 
  complex(4) c, z
  z = (4.0,0.0)
  c = sqrt(z)
  print *, c
  print *, z, c**2 
  end
$ gfc a.f90 && ./a.out
 ( 1.1603759E-02,  0.000000    )
 (  4.000000    ,  0.000000    ) ( 1.3464721E-04,  0.000000    )

Note that the same code works with complex(8), as well as both real kinds.

I'm willing to investigate that issue, but haven't got any idea what to do.

-- 
           Summary: complex(4) sqrt failures on alpha-linux
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev67-unknown-linux-gnu
  GCC host triplet: alphaev67-unknown-linux-gnu
GCC target triplet: alphaev67-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21797


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-06-16 21:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-28 10:46 [Bug fortran/21797] New: complex(4) sqrt failures on alpha-linux fxcoudert at gcc dot gnu dot org
2005-05-28 14:40 ` [Bug fortran/21797] " kargl at gcc dot gnu dot org
2005-05-28 16:34 ` sgk at troutmask dot apl dot washington dot edu
2005-06-02  7:56 ` tkoenig at gcc dot gnu dot org
2005-06-02  8:04 ` tkoenig at gcc dot gnu dot org
2005-06-11 22:43 ` sgk at troutmask dot apl dot washington dot edu
2005-06-13 16:30 ` fxcoudert at gcc dot gnu dot org
2005-06-13 19:49 ` [Bug fortran/21797] [4.0 only] " tkoenig at gcc dot gnu dot org
2005-06-13 20:56 ` fxcoudert at gcc dot gnu dot org
2005-06-14 10:55 ` fxcoudert at gcc dot gnu dot org
2005-06-16 21:24 ` fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).