From: "Alex Bennée" <alex.bennee@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Richard Henderson <richard.henderson@linaro.org>,
qemu-devel@nongnu.org
Subject: Re: [PATCH] accel/tcg: Add URL of clang bug to comment about our workaround
Date: Fri, 29 Jan 2021 15:19:46 +0000 [thread overview]
Message-ID: <87y2gbsrc7.fsf@linaro.org> (raw)
In-Reply-To: <20210129130330.30820-1-peter.maydell@linaro.org>
Peter Maydell <peter.maydell@linaro.org> writes:
> In cpu_exec() we have a longstanding workaround for compilers which
> do not correctly implement the part of the sigsetjmp()/siglongjmp()
> spec which requires that local variables which are not changed
> between the setjmp and the longjmp retain their value.
>
> I recently ran across the upstream clang bug report for this; add a
> link to it to the comment describing the workaround, and generally
> expand the comment, so that we have a reasonable chance in future of
> understanding why it's there and determining when we can remove it,
> assuming clang eventually fixes the bug.
>
> Remove the /* buggy compiler */ comments on the #else and #endif:
> they don't add anything to understanding and are somewhat misleading
> since they're sandwiching the code path for *non*-buggy compilers.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
next prev parent reply other threads:[~2021-01-29 15:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-29 13:03 [PATCH] accel/tcg: Add URL of clang bug to comment about our workaround Peter Maydell
2021-01-29 15:19 ` Alex Bennée [this message]
2021-02-09 10:20 ` Peter Maydell
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=87y2gbsrc7.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.