From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22480 invoked by alias); 8 Jan 2009 14:04:21 -0000 Received: (qmail 22472 invoked by uid 22791); 8 Jan 2009 14:04:20 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from outdoor.onevision.de (HELO outdoor.onevision.de) (212.77.172.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Jan 2009 14:04:15 +0000 Received: from sanders.onevision.de (moonrace [212.77.172.62]) by outdoor.onevision.de (8.14.3/8.13.7/ROSCH/DDB) with ESMTP id n08E3iTR021520; Thu, 8 Jan 2009 15:03:49 +0100 In-Reply-To: <20090108134245.GE20220@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org, Mark Kettenis Subject: Re: [RFC] convert a host address to a string MIME-Version: 1.0 Message-ID: From: Kai Tietz Date: Thu, 08 Jan 2009 14:04:00 -0000 Content-Type: text/plain; charset="US-ASCII" 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: 2009-01/txt/msg00161.txt.bz2 Joel Brobecker wrote on 08.01.2009 14:42:45: > > Please be aware that %llx isn't valid for x86_64 windows (as it isn't for > > 32-bit standard). The options 'I' or 'I64' have to be used for those > > targets (at least for _WIN64). > > Can you be a little more specific? > > I just checked the config.h file generated by configure on > x86_64-windows, and I found this: > > /* Define to 1 if the "%ll" format works to print long longs. */ > #define PRINTF_HAS_LONG_LONG 1 > > If this is wrong, we have yet another problem. Yes, this is wrong, at least for w64. I used the w64 compiler by this and it returns me for the probing code an result of -1. The issue here is that msvcrt doesn't supports (for 32-bit and for 64-bit) the %ll with specifier. For msvcrt80 (or so) they introduced it IIRC, but this version isn't used by mingw as default runtime (because it isn't part of the OS itself). Cheers, Kai | (\_/) This is Bunny. Copy and paste Bunny | (='.'=) into your signature to help him gain | (")_(") world domination.