This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Bug report on pow() for i386 targets
- From: "Howland Craig D (Craig)" <howland at LGSInnovations dot com>
- To: <newlib at sources dot redhat dot com>
- Date: Fri, 28 Aug 2009 17:59:38 -0400
- Subject: RE: Bug report on pow() for i386 targets
- References: <20090828134912.302E.D4FBE9CB@snowelm.com>
Since it was unknown how older releases might react, I tried it
under Cygwin 1.5 with both GCC 3.4.4 and 4.3.2. The problem only
appeared with the original code with 4.3.2 using -O2 or -O3. The
_f_pow() fix corrected the test program output with 4.3.2, and did not
break 3.4.4. (I did not bother trying the _f_powf() fix.)
Craig
-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org]
On Behalf Of Takaki Makino
Sent: Friday, August 28, 2009 1:45 AM
To: newlib@sources.redhat.com
Subject: Bug report on pow() for i386 targets
Dear newlib maintainers,
I found a bug on pow() function in cygwin environment, and I think it is
caused by a problem in _f_pow.c specialized for i386 in newlib.
The following is the description and a proposed patch.
I hope this report helps you.
Thank you for maintaining such an important project!
Best regards,
--
Takaki Makino <t@snowelm.com>
############################
# How to reproduce the bug #
############################
Install the most recent cygwin-1.7 environment, and compile
the following test code with -ffast-math option.
...