From owner-freebsd-bugs@FreeBSD.ORG Mon Mar 31 04:17:09 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1A3637B401; Mon, 31 Mar 2003 04:17:08 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 915D843FA3; Mon, 31 Mar 2003 04:17:08 -0800 (PST) (envelope-from das@FreeBSD.org) Received: from freefall.freebsd.org (das@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h2VCH8Up020142; Mon, 31 Mar 2003 04:17:08 -0800 (PST) (envelope-from das@freefall.freebsd.org) Received: (from das@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h2VCH7gP020127; Mon, 31 Mar 2003 04:17:07 -0800 (PST) Date: Mon, 31 Mar 2003 04:17:07 -0800 (PST) From: David Schultz Message-Id: <200303311217.h2VCH7gP020127@freefall.freebsd.org> To: dan@obluda.cz, das@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: bin/40209: __dtoa broken with -O2 or -O3 optimisation X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 12:17:10 -0000 Synopsis: __dtoa broken with -O2 or -O3 optimisation State-Changed-From-To: open->closed State-Changed-By: das State-Changed-When: Mon Mar 31 04:11:31 PST 2003 State-Changed-Why: This problem is due to the fact that gcc3 with -fstrict-aliasing does not produce the intended output for code that violates C's aliasing rules. Seems to happen only for quantities > 32-bits. The new version of dtoa() imported a few weeks ago does not violate C's aliasing rules and seems to work properly. I do not intend to MFC this code, but then again, the old code works fine with gcc2. http://www.freebsd.org/cgi/query-pr.cgi?pr=40209