[PATCH] mpi: Drop casts from inline asm output operands.
Matt Turner
mattst88 at gmail.com
Thu Sep 3 20:32:57 CEST 2026
On Thu, Sep 3, 2026 at 3:22 AM NIIBE Yutaka <gniibe at fsij.org> wrote:
>
> Hello,
>
> Matt Turner wrote:
> > Using a cast as an lvalue is a GCC extension that clang does not
> > implement. Clang rejects it with -Winvalid-gnu-asm-cast, which is an
> > error by default, so these blocks fail to build with clang.
>
> Please find a workaround for Clang. IIUC, please use
> -Wno-invalid-gnu-asm-cast option. If really needed, we could consider
> adding the option for Clang in libgcrypt/configure.ac.
>
> For longlong.h, the upstream used to be GNU C library. It is GCC now
> (gcc/include/longlong.h).
>
> We don't want further differences of our own from upstream.
Ah, thank you. I'll fix this in GCC first and then return to this.
More information about the Gcrypt-devel
mailing list