From: Florian Weimer <fw@deneb.enyo.de>
To: Fangrui Song via Libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH] stdlib/longlong.h: Remove lvalue to rvalue conversion
Date: Tue, 12 Oct 2021 08:31:31 +0200 [thread overview]
Message-ID: <87wnmiycsc.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <20211010221421.2663034-1-maskray@google.com> (Fangrui Song via Libc-alpha's message of "Sun, 10 Oct 2021 15:14:21 -0700")
* Fangrui Song via Libc-alpha:
> An output constraint takes a lvalue. While GCC happily strips the
> incorrect lvalue to rvalue conversion, Clang Clang rejects the code by
> default:
>
> error: invalid use of a cast in a inline asm context requiring an lvalue: remove the cast or build with -fheinous-gnu-extensions
As I wrote on the gcc-patches list, these casts may be needed in a few
cases. Just removing them may not be entirely correct.
next prev parent reply other threads:[~2021-10-12 6:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-10 22:14 Fangrui Song
2021-10-10 22:21 ` Andrew Pinski
2021-10-10 23:15 ` Fangrui Song
2021-10-11 8:55 ` Paul Zimmermann
2021-10-11 21:58 ` Joseph Myers
2021-10-12 6:35 ` Paul Zimmermann
2021-10-12 13:51 ` Joseph Myers
2021-10-12 6:31 ` Florian Weimer [this message]
2021-10-12 7:24 ` Fāng-ruì Sòng
2021-10-12 7:59 ` Florian Weimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnmiycsc.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).