This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Bug report on pow() for i386 targets


     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.
...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]