From: David Hildenbrand <david@redhat.com>
To: Eric Blake <eblake@redhat.com>, Cornelia Huck <cohuck@redhat.com>
Cc: Alexander Graf <agraf@suse.de>,
qemu-s390x@nongnu.org, qemu-devel@nongnu.org,
Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [qemu-s390x] [PATCH v2] s390x/tcg: add various alignment check
Date: Thu, 15 Feb 2018 15:19:16 +0100 [thread overview]
Message-ID: <a208690f-6ab6-f2dd-f07e-620112420e32@redhat.com> (raw)
In-Reply-To: <3145074e-025a-d1a0-8446-6e62010b970f@redhat.com>
On 15.02.2018 15:13, Eric Blake wrote:
> On 02/15/2018 03:49 AM, Cornelia Huck wrote:
>> On Thu, 15 Feb 2018 10:47:45 +0100
>> David Hildenbrand <david@redhat.com> wrote:
>>
>>> On 14.02.2018 20:04, Richard Henderson wrote:
>>>> On 02/14/2018 09:31 AM, David Hildenbrand wrote:
>>>>> Let's add proper alignment checks for a handful of instructions that
>>>>> require a SPECIFICATION exception in case alignment is violated.
>>>>>
>>>>> Introduce new wout/in functions. Declare them as "static inline" to avoid
>>>>> warnings about not being used for CONFIG_USER_ONLY (as we are right
>>>>> now only using them for privileged instructions).
>>>>
>>>> Annoyingly, clang will still warn for this.
>>>>
>>>
>>> Hm, so the only solution is to add nasty idfefs then :(
>>
>> Yup, very annoying indeed, but probably the only way to shut clang up...
>
> Does marking the function __attribute__((unused)) shut up clang?
>
Guess so, seems to be used in tcg/tcg.c. But I don't think that's a
major improvement, as these warnings can actually point you at bugs.
--
Thanks,
David / dhildenb
prev parent reply other threads:[~2018-02-15 14:19 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-14 17:31 [Qemu-devel] [PATCH v2] s390x/tcg: add various alignment check David Hildenbrand
2018-02-14 19:04 ` Richard Henderson
2018-02-15 9:47 ` [Qemu-devel] [qemu-s390x] " David Hildenbrand
2018-02-15 9:49 ` Cornelia Huck
2018-02-15 10:10 ` David Hildenbrand
2018-02-15 14:13 ` Eric Blake
2018-02-15 14:19 ` David Hildenbrand [this message]
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=a208690f-6ab6-f2dd-f07e-620112420e32@redhat.com \
--to=david@redhat.com \
--cc=agraf@suse.de \
--cc=cohuck@redhat.com \
--cc=eblake@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@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).