[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HP-UX 10.20 format failure (was: snapshot 3 in preparation for 1.4.
From: |
Gary V. Vaughan |
Subject: |
Re: HP-UX 10.20 format failure (was: snapshot 3 in preparation for 1.4.13) |
Date: |
Thu, 26 Feb 2009 01:11:07 +0700 |
Hi Bruno,
2009/2/25 Bruno Haible <address@hidden>:
> 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: address@hidden (\(\
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 ("("_)
- Re: HP-UX 11.31 strtod failure (was: snapshot 3 in preparation for 1.4.13), (continued)
HP-UX 11.23 stdint failure (was: snapshot 3 in preparation for 1.4.13), Eric Blake, 2009/02/24
Re: HP-UX 11.23 stdint failure, Eric Blake, 2009/02/25
HP-UX 10.20 format failure (was: snapshot 3 in preparation for 1.4.13), Eric Blake, 2009/02/24
Re: snapshot 3 in preparation for 1.4.13, Tom G. Christensen, 2009/02/24