]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ck: Correct asm output operand widths in amd64 pointer intrinsics
authorMark Johnston <markj@FreeBSD.org>
Tue, 10 Aug 2021 21:23:49 +0000 (17:23 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 11 Aug 2021 01:27:54 +0000 (21:27 -0400)
commitd75884df7812d7331d4ba0a37c7d391f080a9988
tree9c41f8481513c5ab984b83fc842716511ec3336e
parent100949103a6340aff8a6a4caf1927374c242721c
ck: Correct asm output operand widths in amd64 pointer intrinsics

This does not appear to change generated code with the default
toolchain.  However, KMSAN makes use of output operand specifications to
instrument inline asm, and with incorrect specifications we get false
positives in code that uses the CK_(S)LIST macros.

This was submitted upstream:
https://github.com/concurrencykit/ck/pull/175

The commit applies the same change locally to make KMSAN usable until
something equivalent is merged upstream.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation
sys/contrib/ck/include/gcc/x86_64/ck_pr.h