Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: ; 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