system without printf_has_long_long?
Andrew Cagney
ac131313@cygnus.com
Sat Jan 12 11:54:00 GMT 2002
FYI, Peter Schauer tossed me a patch to fix it so I'll check it in.
Andrew
> Hello,
>
> This, er gem, from language.c, has me truely puzzled:
>
> #ifndef CC_HAS_LONG_LONG
> ....
> #elif defined (PRINTF_HAS_LONG_LONG)
> ....
> #else /* !defined (PRINTF_HAS_LONG_LONG) */
> /* Use strcat_address_numeric to print the number into a string, then
> build the result string from local_hex_format_prefix, padding and
> the hex representation as indicated by "width". */
>
> temp_nbr_buf[0] = 0;
> /* With use_local == 0, we don't get the leading "0x" prefix. */
> /* MERGEBUG ?? As a quick fix I am replacing this call to
> strcat_address_numeric with sprintf
> strcat_address_numeric(num, 0, temp_nbr_buf, RESULT_BUF_LEN);
> */
>
> {
> long long ll = num;
> sprintf (temp_nbr_buf, "%llx", ll);
> }
>
> It has been in there for two years (HP merge) and it can't work.
>
> Andrew.
>
More information about the Gdb
mailing list