Hi Bruno, 2009/2/25 Bruno Haible <br...@clisp.org>: > Gary V. Vaughan wrote: >> All pass except this one: >> >> ... >> cc -I. -I../lib -I. -I. -I.. -I./.. -I../lib -I./../lib -I../intl >> +O2 -Ae -z +Ofltacc +ESlit +DAportable +Oentrysched +Odataprefetch >> +Onolimit -c test-vasprintf-posix.c >> test-vasprintf-posix.c:2804: assertion failed >> FAIL: test-vasprintf-posix > > This is unrelated to strtod and HUGE_VAL. But can you show the results of > > $ grep NEED config.h
% grep NEED lib/config.h #define NEED_PRINTF_DIRECTIVE_A 1 #define NEED_PRINTF_DIRECTIVE_F 1 /* #undef NEED_PRINTF_DOUBLE */ /* #undef NEED_PRINTF_ENOMEM */ /* #undef NEED_PRINTF_FLAG_GROUPING */ #define NEED_PRINTF_FLAG_LEFTADJUST 1 #define NEED_PRINTF_FLAG_ZERO 1 /* #undef NEED_PRINTF_INFINITE_DOUBLE */ /* #undef NEED_PRINTF_INFINITE_LONG_DOUBLE */ /* #undef NEED_PRINTF_LONG_DOUBLE */ /* #undef NEED_PRINTF_UNBOUNDED_PRECISION */ > and of running this program? > > ======================== printf-minus-zero.c ==================== > #include <stdio.h> > double zerod = 0.0; > int main () > { > char buf[100]; > int ret = sprintf (buf, "%g %d", -zerod, 33, 44, 55); > printf ("%d\n%s\n", ret, buf); > return 0; > } > ================================================================= > > Expected output is: > 5 > -0 33 Nope :( % cc -Ae +DAportable -o printf-minus-zero printf-minus-zero.c % ./printf-minus-zero 4 0 33 Cheers, Gary -- Email me: g...@gnu.org (\(\ Read my blog: http://blog.azazil.net ( o.O) And my other blog: http://www.machaxor.net (uu )o ...and my book: http://sources.redhat.com/autobook ("("_)