From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29051 invoked by alias); 14 May 2012 04:58:35 -0000 Received: (qmail 29043 invoked by uid 22791); 14 May 2012 04:58:34 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 May 2012 04:58:17 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 9ACE81C6091; Mon, 14 May 2012 00:58:16 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eZdYvgPQKS5w; Mon, 14 May 2012 00:58:16 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 4E9F01C607A; Mon, 14 May 2012 00:58:16 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id C67A0145616; Sun, 13 May 2012 21:58:08 -0700 (PDT) Date: Mon, 14 May 2012 04:58:00 -0000 From: Joel Brobecker To: Eli Zaretskii Cc: asmwarrior , gdb@sourceware.org Subject: Re: [mingw]gdb CVS HEAD build error Message-ID: <20120514045808.GT29339@adacore.com> References: <4FB05F17.7090701@gmail.com> <83k40fwk5k.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83k40fwk5k.fsf@gnu.org> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00053.txt.bz2 > > It suggest that under MinGW, we should use %I64d > > > > Any ideas? > > Use decimal2str? We have plongest and pulongest which I think are a little more convenient to use (it's based on decimal2str). Cast to LONGEST instead of long long, and then pass it to plongest. Another possible option is to switch to gnulib's printf. I don't know if gnulib's configury would detect faulty or incomplete versions of printf like here, so it might not work in this case, but could be worth a shot. -- Joel