HomeFreeBSD

libthr _get_curthread i386: quiet gcc -Warray-bounds

Description

libthr _get_curthread i386: quiet gcc -Warray-bounds

Use a constant input operand instead of a bogus memory reference to tell
the compiler about offsetof(struct tcb, tcb_thread) in the gs segment.
Otherwise gcc complains if we tell it we are reading memory offset 0x8.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D45829

Details

Provenance
rlibbyAuthored on Jul 3 2024, 3:37 PM
Reviewer
kib
Differential Revision
D45829: libthr _get_curthread i386: quiet gcc -Warray-bounds
Parents
rG657b1276ad4c: libthr _get_curthread amd64: quiet gcc -Warray-bounds
Branches
Unknown
Tags
Unknown