From: "Emilio G. Cota" <cota@braap.org>
To: Pranith Kumar <bobby.prani@gmail.com>
Cc: Richard Henderson <rth@twiddle.net>,
"open list:All patches CC here" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] util/cacheinfo: Fix warning generated by clang
Date: Fri, 30 Jun 2017 17:15:14 -0400 [thread overview]
Message-ID: <20170630211514.GA13753@flamenco> (raw)
In-Reply-To: <20170630153946.11997-1-bobby.prani@gmail.com>
On Fri, Jun 30, 2017 at 11:39:46 -0400, Pranith Kumar wrote:
> Clang generates the following warning on aarch64 host:
>
> CC util/cacheinfo.o
> /home/pranith/qemu/util/cacheinfo.c:121:48: warning: value size does not match register size specified by the constraint and modifier [-Wasm-operand-widths]
> asm volatile("mrs\t%0, ctr_el0" : "=r"(ctr));
> ^
> /home/pranith/qemu/util/cacheinfo.c:121:28: note: use constraint modifier "w"
> asm volatile("mrs\t%0, ctr_el0" : "=r"(ctr));
> ^~
> %w0
>
> Constraint modifier 'w' is not (yet?) accepted by gcc. Fix this by increasing the ctr size.
>
> Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
I can reproduce with clang 3.9.1.
Tested-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Thanks,
Emilio
next prev parent reply other threads:[~2017-06-30 21:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-30 15:39 [Qemu-devel] [PATCH] util/cacheinfo: Fix warning generated by clang Pranith Kumar
2017-06-30 21:15 ` Emilio G. Cota [this message]
2017-07-01 22:20 ` Richard Henderson
2017-07-01 22:30 ` Peter Maydell
2017-07-01 22:35 ` Richard Henderson
2017-07-01 22:44 ` Peter Maydell
2017-07-03 21:16 ` Richard Henderson
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=20170630211514.GA13753@flamenco \
--to=cota@braap.org \
--cc=bobby.prani@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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 NNTP newsgroup(s).