This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/25017] sqrt, csqrt may give a wrong result if real part of compex argument is zero
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2005 17:22:51 -0000
- Subject: [Bug libfortran/25017] sqrt, csqrt may give a wrong result if real part of compex argument is zero
- References: <bug-25017-8520@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from sgk at troutmask dot apl dot washington dot edu 2005-11-24 17:22 -------
Subject: Re: sqrt, csqrt may give a wrong result if real part of compex
argument is zero
On Thu, Nov 24, 2005 at 05:05:12PM -0000, pinskia at gcc dot gnu dot org wrote:
>
> (In reply to comment #4)
> > c99_functions.c contains implementations of csqrt[fl],
> > which are the fixed glibc routines. We can remove
> > the "#if !defined(HAVE_CSQRTF)" and simply have gfortran
> > use its own versions.
>
> For only targets which have a broken csqrtf yes. Please don't do it all the
> time.
>
I've never used glibc. Does it define a _GLIBC_VERSION_MAJOR
and _GLIBC_VERSION_MINOR? We could do
#if !defined(HAVE_CSQRTF) || (xx_MAJOR < 42 & xx_MINOR < 42)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25017