From owner-freebsd-bugs Fri Jun 21 10:34:39 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 32F8137B403 for ; Fri, 21 Jun 2002 10:34:34 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id DAA08370; Sat, 22 Jun 2002 03:34:28 +1000 Date: Sat, 22 Jun 2002 03:39:25 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Igor Roboul Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: misc/38884: bug in vfprinf.c function cvt(...) In-Reply-To: <200206210820.g5L8K3P18015@freefall.freebsd.org> Message-ID: <20020622032126.A4995-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 21 Jun 2002, Igor Roboul wrote: > Error is fixed by recompiling libc with -O instead of -O2 This PR was submitted before gcc-3 was in the tree. Did you compile the libraries with a gcc-3 from ports back then? I checked that gcc3 -O2's compilation dtoa.c is the main thing responsible for misprinting (float)123 in the example in your other thread (about ncurses ...). There was no problem with gcc2 -O2, gcc3 -O, or gcc3 with -O2 for vfprintf.c and the program alone. gcc3 with -O2 for dtoa.c and the program alone makes a mess. So I think this is mostly a compiler bug. > But I still think that there is nothing wrong with extra check in vfprintf.c It's just not useful, and might hide the real bug. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message