From: khan@xraylith.wisc.edu (Mumit Khan)
Subject: Re: cygwin-b20  gcc: "A - floor(A)" returns a negative value
10 Nov 1998 06:58:12 -0800
Message-ID: <Pine.SUN.3.93.981109102403.12553E-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <000001be0b8a$16397810$f445ce84@ECE.McGill.CA>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To: Peter Kabal <Kabal@ece.mcgill.ca>
Cc: gnu-win32@cygnus.com

On Sun, 8 Nov 1998, Peter Kabal wrote:

> Switching from cygwin-b19 to cygwin-b20 caused a C-routine to give
> incorrect results.  This was traced to a calculation (in double) of
> "A - float(A)" which returns a negative value.  By definition it should
> always be positive.  A short test program which demonstrates this
> problem is included.  If the program is further simplified, the problem
> goes away.  To exercise the bug, the program must be compiled with
> optimization level -O3.

Thanks for the report and the testcast! 

I've reported this bug to egcs-bugs list. fyi, this is a regression from 
1.0.x releases and affects all x86 ports, not just cygwin/mingw.

Regards,
Mumit


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
