Mercurial > hg > octave-kai > gnulib-hg
view modules/mbscasestr-tests @ 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 | 03aab12b3f15 |
children | 413f5a66c55a |
line wrap: on
line source
Files: tests/test-mbscasestr1.c tests/test-mbscasestr2.sh tests/test-mbscasestr2.c tests/test-mbscasestr3.sh tests/test-mbscasestr3.c tests/test-mbscasestr4.sh tests/test-mbscasestr4.c tests/macros.h m4/locale-fr.m4 m4/locale-tr.m4 m4/locale-zh.m4 m4/codeset.m4 Depends-on: configure.ac: gt_LOCALE_FR_UTF8 gt_LOCALE_TR_UTF8 gt_LOCALE_ZH_CN Makefile.am: TESTS += test-mbscasestr1 test-mbscasestr2.sh test-mbscasestr3.sh test-mbscasestr4.sh TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@' check_PROGRAMS += test-mbscasestr1 test-mbscasestr2 test-mbscasestr3 test-mbscasestr4