Mercurial > hg > octave-kai > gnulib-hg
view modules/freopen-safer @ 13837:d7a891a411c1
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>
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Fri, 05 Nov 2010 08:30:27 -0600 |
parents | b156d2d1b827 |
children | a9daeaa8d991 |
line wrap: on
line source
Description: freopen function that avoids clobbering std{in,out,err}. Files: lib/stdio--.h lib/stdio-safer.h lib/freopen-safer.c m4/stdio-safer.m4 Depends-on: dup2 freopen open stdbool configure.ac: gl_FREOPEN_SAFER gl_MODULE_INDICATOR([freopen-safer]) Makefile.am: Include: "stdio-safer.h" License: GPL Maintainer: Eric Blake