HomeFreeBSD

libthr _get_curthread amd64: quiet gcc -Warray-bounds

Description

libthr _get_curthread amd64: 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 fs segment.
Otherwise gcc complains if we tell it we are reading memory offset 0x10.

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

Details

Provenance
rlibbyAuthored on Wed, Jul 3, 3:37 PM
Reviewer
kib
Differential Revision
D45828: libthr _get_curthread amd64: quiet gcc -Warray-bounds
Parents
rG2730f4291411: amd64 pcpu: fix clobbers, suppress warnings, and clean up
Branches
Unknown
Tags
Unknown