delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/29/08:17:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 29 Jan 2001 08:11:30 -0500
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin gcc 2.95-2 printf bug
Message-ID: <20010129081130.A29346@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <3A746ECA DOT 80D1680E AT uoguelph DOT ca> <Pine DOT HPP DOT 3 DOT 96 DOT 1010128213936 DOT 20620Y-100000 AT hp2 DOT xraylith DOT wisc DOT edu>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <Pine.HPP.3.96.1010128213936.20620Y-100000@hp2.xraylith.wisc.edu>; from khan@NanoTech.Wisc.EDU on Sun, Jan 28, 2001 at 09:46:09PM -0600

On Sun, Jan 28, 2001 at 09:46:09PM -0600, Mumit Khan wrote:
>On Sun, 28 Jan 2001, Gerald Jansen wrote:
>
>> There is a bug printing near-zero floating point numbers in 2.95.2.
>> 
>> main() {
>>   printf("[%5.2f] [%5.2f]\n",0.01,-0.01);
>>   printf("[%5.2f] [%5.2f]\n",0.001,-0.001);
>>   exit(0);
>> }
>> 
>> Produces:
>> [ 0.01] [-0.01]
>> [ 0] [-0]
>
>Thanks for reporting it. FYI, It's an issue with newlib (the library 
>used in Cygwin), not with gcc.
>
>Unfortunately, I don't have a solution for this ... it also happens
>on other newlib supported targets, such as powerpc-eabi using newlib
>1.9.0.

It should be fixed in the CVS repository on sources.redhat.com and in
later cygwin snapshots.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019