[PATCH] stdio: Move include of bits/stdio-ldbl.h before bits/stdio.h

John Paul Adrian Glaubitz glaubitz@physik.fu-berlin.de
Mon Aug 16 12:24:07 GMT 2021


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


More information about the Libc-alpha mailing list