Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sourceware.org
Cc: Thiago Jung Bauermann <bauerman@br.ibm.com>
Subject: DFP build failure
Date: Wed, 09 Jan 2008 16:49:00 -0000	[thread overview]
Message-ID: <20080109164917.GA10333@caradoc.them.org> (raw)

void
decimal_from_floating (struct value *from, gdb_byte *to, int len)
{
  char *buffer;
  int ret;

  ret = asprintf (&buffer, "%.30Lg", value_as_double (from));
  ...

value_as_double returns a DOUBLEST, not necessarily a long double as
specified by %Lg.  And the system printf does not necessarily support
long double.  Is there some other way to do this?

(It failed to build on mingw32.)

-- 
Daniel Jacobowitz
CodeSourcery


             reply	other threads:[~2008-01-09 16:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 16:49 Daniel Jacobowitz [this message]
2008-01-09 18:31 ` Thiago Jung Bauermann
2008-01-09 18:36   ` Daniel Jacobowitz
2008-01-09 19:11     ` Thiago Jung Bauermann
2008-01-09 19:15       ` Daniel Jacobowitz
2008-01-09 19:28         ` Thiago Jung Bauermann

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=20080109164917.GA10333@caradoc.them.org \
    --to=drow@false.org \
    --cc=bauerman@br.ibm.com \
    --cc=gdb-patches@sourceware.org \
    /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