strtod: work around icc bug
authorEric Blake <eblake@redhat.com>
Fri, 5 Nov 2010 14:30:27 +0000 (08:30 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 5 Nov 2010 14:30:39 +0000 (08:30 -0600)
commit2414bb80fe0195d2799fcd876830cc9772acb1b9
treeae4c7c9ae94c03e75577328e6c23527c8ee974bd
parente9101693adb3c251ee277242ef4af7aa570193b6
strtod: work around icc bug

With optimization, ICC 10.0 mis-compiles 'cond ? -val : val' such
that a val of 0.0 doesn't result in -0.0.

* lib/strtod.c (minus_zero): Define to working value.
(strtod): Use it to avoid icc bug.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/strtod.c