This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/24313] complex sqrt function does not return principal value
- From: "harald dot vogt at desy dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2006 21:07:45 -0000
- Subject: [Bug libfortran/24313] complex sqrt function does not return principal value
- References: <bug-24313-10567@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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 also
http://sources.redhat.com/bugzilla/show_bug.cgi?id=2181
http://sources.redhat.com/bugzilla/show_bug.cgi?id=2182 .
Therefore it may be useful to check in intrinsics/configure if libm is broken
in the architecture used, and if so use the code in intrinsics/c99_functions.c
.
A possible solution for csqrt is shown in
http://www-zeuthen.desy.de/~hvogt/gfortran/acinclude.m4.diff .
It is better to be independend from glibc coming with the OS. This enables to
install gcc4(gfortran) without patching libm if it has bugs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24313