From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by sourceware.org (Postfix) with ESMTPS id D87303858D35 for ; Mon, 16 Aug 2021 12:24:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D87303858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=physik.fu-berlin.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zedat.fu-berlin.de Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.94) with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1mFbey-002OPN-5f; Mon, 16 Aug 2021 14:24:08 +0200 Received: from suse-laptop.physik.fu-berlin.de ([160.45.32.140]) by inpost2.zedat.fu-berlin.de (Exim 4.94) with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (envelope-from ) id 1mFbey-002vus-0T; Mon, 16 Aug 2021 14:24:08 +0200 Subject: Re: [PATCH] stdio: Move include of bits/stdio-ldbl.h before bits/stdio.h To: Adhemerval Zanella References: <20210322111530.3215018-1-glaubitz@physik.fu-berlin.de> <9dedf9b9-5af3-3f3b-e749-2c8e50ec5dc4@linaro.org> Cc: libc-alpha@sourceware.org From: John Paul Adrian Glaubitz Message-ID: <7d128614-5adf-66e9-e346-4b261d8280f5@physik.fu-berlin.de> Date: Mon, 16 Aug 2021 14:24:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <9dedf9b9-5af3-3f3b-e749-2c8e50ec5dc4@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Original-Sender: glaubitz@physik.fu-berlin.de X-Originating-IP: 160.45.32.140 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2021 12:24:11 -0000 Hi Adhemerval! On 3/23/21 6:59 PM, Adhemerval Zanella wrote: > I think to proper handle this LLVM limitation we will need to fully > rework how __LDBL_REDIR2_DECL does the redirect by something similar > to what __REDIRECT does by defining something like: > > | #if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1 > | # ifdef __REDIRECT > | > | /* Alias name defined automatically.  */ > | #  define __LDBL_REDIR(name, proto) \ > |  extern name proto __asm__ (__ASMNAME ("__" #name "ieee128")); > | > | /* Alias name defined automatically, with leading underscores.  */ > | #  define __LDBL_REDIR2_DECL(name) \ > |    extern __##name proto __asm__ (__ASMNAME ("__" #name "ieee128")); > > | > | /* Alias name defined manually.  */ > | #  define __LDBL_REDIR1(name, proto, alias) \ > |  extern name proto __asm__ (__ASMNAME (alias)); > > And replace __LDBL_REDIR_DECL with __LDBL_REDIR and __LDBL_REDIR1_DECL > with __LDBL_REDIR1 (while adding the require argument prototype).  It > will allow to move the stdio-ldbl.h definitions to stdio and remove the > header. Apologies for the very late reply, this somehow fell off the table. Could you post a patch to the mailing list, I will then give it a try. Would be great if we could get this issue fixed as it's rather annoying. Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913