On Mon, Sep 21, 2026 at 2:54 PM Jakub Jelinek <[email protected]> wrote:
>
> On Mon, Sep 21, 2026 at 05:46:54PM -0400, Matt Turner wrote:
> > Clang rejects the casts on asm output operands in longlong.h
> > (-Winvalid-gnu-asm-cast is an error by default), so several of its
> > blocks do not build with clang.  v1 dropped the casts.  Richard pointed
> > out that they do check something, because GCC accepts a cast on an asm
> > output only when it is a no-op, so an output of the wrong size fails to
> > build.  This version keeps that check.
>
> Maybe better fix clang to implement correctly a GNU extension?

The other thing is longlong.h should only be used for the target
libraries.  So I don't see why we need to change it at all.  Maybe
need to make sure they are not used for non-target libraries.  If you
need to use longlong.h for non-target libraries then another header
should be used.

Thanks,
Andrea

>
>         Jakub
>

Reply via email to