From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14430 invoked by alias); 11 Oct 2006 20:28:29 -0000 Received: (qmail 14420 invoked by uid 22791); 11 Oct 2006 20:28:29 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-vbr13.xs4all.nl (HELO smtp-vbr13.xs4all.nl) (194.109.24.33) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Oct 2006 20:28:24 +0000 Received: from webmail.xs4all.nl (dovemail3.xs4all.nl [194.109.26.5]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id k9BKSKGi041165; Wed, 11 Oct 2006 22:28:20 +0200 (CEST) (envelope-from mark.kettenis@xs4all.nl) Received: from 82.92.89.47 (SquirrelMail authenticated user sibelius) by webmail.xs4all.nl with HTTP; Wed, 11 Oct 2006 22:28:21 +0200 (CEST) Message-ID: <10959.82.92.89.47.1160598501.squirrel@webmail.xs4all.nl> In-Reply-To: <452CCE2D.8070806@st.com> References: <452CCE2D.8070806@st.com> Date: Wed, 11 Oct 2006 20:28:00 -0000 Subject: Re: [PATCH] long long for printf on MinGW From: "Mark Kettenis" To: "Andrew STUBBS" Cc: "GDB Patches" User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00123.txt.bz2 > Hi, > > Windows/MinGW printf does support printing of long long types, but it > does not do using %lld etc. > > This patch converts %ll (or %...ll) to %I64 as required by Windows. What! Seven years after ISO C99 was ratified, Microsoft still ships a libc that doesn't support %ll? Sigh, I don't see why we need to treat MINGW special here. We should probably just print an error if PRINTF_HAS_LONG_LONG isn't defined. Actually I think the way we support size modifiers in gdb's printf are completely broken. Do they refer to the host types, or the target types?