Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2003 04:17:07 -0800 (PST)
From:      David Schultz <das@FreeBSD.org>
To:        dan@obluda.cz, das@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: bin/40209: __dtoa broken with -O2 or -O3 optimisation
Message-ID:  <200303311217.h2VCH7gP020127@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303311217.h2VCH7gP020127>