From: Andrew Cagney <ac131313@cygnus.com>
To: gdb@sources.redhat.com
Subject: system without printf_has_long_long?
Date: Fri, 11 Jan 2002 21:53:00 -0000 [thread overview]
Message-ID: <3C3FCF38.7000508@cygnus.com> (raw)
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.
next reply other threads:[~2002-01-12 5:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-11 21:53 Andrew Cagney [this message]
2002-01-12 11:54 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C3FCF38.7000508@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox