From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28374 invoked by alias); 9 Jan 2008 16:49:40 -0000 Received: (qmail 28366 invoked by uid 22791); 9 Jan 2008 16:49:39 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 09 Jan 2008 16:49:20 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D6F5298224; Wed, 9 Jan 2008 16:49:18 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id B437098216; Wed, 9 Jan 2008 16:49:18 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.68) (envelope-from ) id 1JCe7B-0002h9-Pw; Wed, 09 Jan 2008 11:49:17 -0500 Date: Wed, 09 Jan 2008 16:49:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Cc: Thiago Jung Bauermann Subject: DFP build failure Message-ID: <20080109164917.GA10333@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org, Thiago Jung Bauermann MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00195.txt.bz2 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