]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Simplify RSEQ area access expressions
authorUros Bizjak <ubizjak@gmail.com>
Thu, 25 Sep 2025 08:08:11 +0000 (10:08 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Wed, 8 Oct 2025 07:35:15 +0000 (09:35 +0200)
commit99518a3a35587705a64cad6df4b02624ea601667
tree4f683b03ab87cb0ca21f7f5a194cee47d980f727
parente47728a77c38926945d3759f8654106b18be9427
x86: Simplify RSEQ area access expressions

Replace manual cast with a direct
`(struct rseq_area __seg_gs *)__rseq_offset` dereference to access
`member`.  This avoids redundant `offsetof(struct rseq_area, member)`
and improves readability while preserving semantics.

Signed-off-by: Uros Bizjak <ubizjak@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/i386/nptl/rseq-access.h
sysdeps/x86_64/64/nptl/rseq-access.h