From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74792 invoked by alias); 14 Nov 2019 20:37:23 -0000 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 Received: (qmail 74779 invoked by uid 89); 14 Nov 2019 20:37:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 spammy=HX-Received:740a X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Nov 2019 20:37:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573763840; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+LVsOFzvJs2uRSWsWiujArnlUFJEC1b+TtfRzg9rXlM=; b=L9CQNH4i+laRElMltt5mYAPRloD0ToWrnXaFsWKOnkIuqbwPahagO8M02Zw3qzozTIKRID IMwyONPsHS/tDwibemTZ8qj4/ThWAfa/pBKbH+w2DCxM6PcQFT6C96Wl0zEamEPJNSMK8I dxz5K+U+Z+ig/Il+txQQVxSTiW4v4BA= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-420-4ZO5KYbjMV6W_mm150vDHA-1; Thu, 14 Nov 2019 15:37:19 -0500 Received: by mail-wm1-f71.google.com with SMTP id t203so4189643wmt.7 for ; Thu, 14 Nov 2019 12:37:19 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f913:f700:56ee:75ff:fe8d:232b? ([2001:8a0:f913:f700:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id q25sm9447706wra.3.2019.11.14.12.37.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Nov 2019 12:37:17 -0800 (PST) Subject: Re: [pushed] gdb: Support printf 'z' size modifier To: Eli Zaretskii , Simon Marchi References: <20191112235315.5BD6728171@gnutoolchain-gerrit.osci.io> <83y2wi62jp.fsf@gnu.org> <20191114164945.GP11037@embecosm.com> <83pnhu4co3.fsf@gnu.org> <4b637fa7-666c-4a80-8627-a6efefd6ec2a@polymtl.ca> <83mucy48lk.fsf@gnu.org> Cc: andrew.burgess@embecosm.com, tromey@sourceware.org, brobecker@adacore.com, kevinb@redhat.com, gdb-patches@sourceware.org From: Pedro Alves Message-ID: <214ef744-6497-d7fc-8374-413a552b456a@redhat.com> Date: Thu, 14 Nov 2019 20:37:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <83mucy48lk.fsf@gnu.org> X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-11/txt/msg00409.txt.bz2 On 11/14/19 6:27 PM, Eli Zaretskii wrote: >> Cc: tromey@sourceware.org, palves@redhat.com, brobecker@adacore.com, >> kevinb@redhat.com, gdb-patches@sourceware.org >> From: Simon Marchi >> Date: Thu, 14 Nov 2019 12:09:20 -0500 >> >> Apaprently, the __USE_MINGW_ANSI_STDIO macro has been marked as deprecat= ed (IIUC, to >> incite people not to define it directly), and I found this thread [1] on= the mingw-users >> mailing list where you asked the maintainer to reconsider this decision. >> >> What is the status on that? If defining __USE_MINGW_ANSI_STDIO is not t= he right way >> of enabling this feature, then what is? What is the status of this? >=20 > The "new" way is to use the __MINGW_FEATURES__ macro. But if you want > to do this in a way that will work with noth mingw.org's MinGW and > MinGW64, the __USE_MINGW_ANSI_STDIO is the way, and it is still > supported. >=20 I think that the ideal place to do that would be in src/config/mh-mingw, so that all projects in the tree, plus gcc, enabled it. It's where we do -D__USE_MINGW_ACCESS. Thanks, Pedro Alves