[Bug libfortran/24313] complex sqrt function does not return principal value

2006-10-29 Thread burnus at gcc dot gnu dot org
--- Comment #14 from burnus at gcc dot gnu dot org 2006-10-29 11:58 --- For completeness, the two problems are in the meanwhile fixed in glibc: - csqrt bug, fixed 2005-10-13, http://sources.redhat.com/bugzilla/show_bug.cgi?id=1466 - cacosh bug, fixed 2006-08-03, http://sources.redhat.c

[Bug libfortran/24313] complex sqrt function does not return principal value

2006-10-29 Thread burnus at gcc dot gnu dot org
--- Comment #13 from burnus at gcc dot gnu dot org 2006-10-29 11:57 --- Subject: Bug 24313 Author: burnus Date: Sun Oct 29 11:56:56 2006 New Revision: 118142 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118142 Log: 2006-10-28 Tobias Burnus <[EMAIL PROTECTED]> PR libg

[Bug libfortran/24313] complex sqrt function does not return principal value

2006-01-25 Thread harald dot vogt at desy dot de
--- Comment #12 from harald dot vogt at desy dot de 2006-01-25 21:07 --- (In reply to comment #9) > Patch for libgfortran > > http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00626.html > It is a useful strategy to use libm but... It seems that glibc has still problems with csqrt. See a

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-11-24 Thread pinskia at gcc dot gnu dot org
--- Comment #11 from pinskia at gcc dot gnu dot org 2005-11-24 16:41 --- *** Bug 25017 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread cvs-commit at gcc dot gnu dot org
--- Comment #10 from cvs-commit at gcc dot gnu dot org 2005-10-11 23:35 --- Subject: Bug 24313 CVSROOT:/cvs/gcc Module name:gcc Changes by: [EMAIL PROTECTED] 2005-10-11 23:35:27 Modified files: libgfortran: ChangeLog libgfortran/intrinsics: c

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread kargl at gcc dot gnu dot org
--- Comment #9 from kargl at gcc dot gnu dot org 2005-10-11 20:46 --- Patch for libgfortran http://gcc.gnu.org/ml/gcc-patches/2005-10/msg00626.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24313

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread kargl at gcc dot gnu dot org
--- Comment #8 from kargl at gcc dot gnu dot org 2005-10-11 20:21 --- Yes, I agree glibc has the bug. But, libgfortran also has the bug and will be present on every OS that does not have a libm with csqrt and csqrtf. I have a patch for libgfortran. -- http://gcc.gnu.org/bugzilla/s

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2005-10-11 20:18 --- (In reply to comment #6) > FreeBSD *does not* have a csqrt or csqrtf in libm! The problem is > in intrinsics/c99_functions.c. I'm testing a patch. But if csqrtf in c99_functions.c was pulled from glibc, then there

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread kargl at gcc dot gnu dot org
--- Comment #6 from kargl at gcc dot gnu dot org 2005-10-11 20:11 --- FreeBSD *does not* have a csqrt or csqrtf in libm! The problem is in intrinsics/c99_functions.c. I'm testing a patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24313

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2005-10-11 19:58 --- (In reply to comment #4) > Note the use of __builtin_csqrtf(). But that just calls into csqrt which is part of libm. Look at the asm output. -- pinskia at gcc dot gnu dot org changed: What|Remov

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread kargl at gcc dot gnu dot org
--- Comment #4 from kargl at gcc dot gnu dot org 2005-10-11 19:56 --- This is definitely a gcc bug. gfortran -fdump-tree-original csqrt.f yields (with removal of IO crap and shorting of long constants) MAIN__ () { complex4 y; complex4 x; x = __complex__ (0.0, -1.0e+0); y = _

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2005-10-11 18:48 --- I don't think this is a glibc problem. gfortran will use a GCC builtin function. See gcc/fortran/mathbuiltins.def To confirm this, I get troutmask:kargl[210] ./z ( 0.00, -1.00) (-0.7071068, 0

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-11 17:33 --- This is a bug in glibc's csqrt as gfortran just calls it. Please report it to them. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/24313] complex sqrt function does not return principal value

2005-10-11 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-11 17:31 --- Hmm, I think this is a bug in glibc's csqrt. as I get the following on powerpc-darwin: ( 0.00, -1.00) ( 0.7071068,-0.7071068) ( 9.994E-39, -1.00) ( 0.7071068,-0.7071068)