This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Type-punning through casts in strtod.c "miscompiled" by gcc trunk
- From: dmg at acm dot org (David M. Gay)
- To: hans-peter dot nilsson at axis dot com (Hans-Peter Nilsson)
- Cc: newlib at sourceware dot org, jjohnstn at redhat dot com (Jeff Johnston)
- Date: Sun, 29 Jun 2008 21:55:31 -0600 (MDT)
- Subject: Type-punning through casts in strtod.c "miscompiled" by gcc trunk
You must have an ancient copy of dtoa.c. You really should
check for updates occasionally, either by sending "subscribe fp"
to netlib@ornl.gov (so you get automatic notification of updates)
or by manually checking every year or so.
The type-punning problem was fixed about eight years ago, and
there have been various other bug fixes. As always, the current
source is available from netlib, e.g.,
http://www.netlib.org/fp/dtoa.c
http://netlib.sandia.gov/fp/dtoa.c.gz
See also the generalization
http://www.netlib.org/fp/gdtoa.tgz
http://netlib.sandia.gov/fp/gdtoa.tgz
-- Dave