Page MenuHomeFreeBSD

libthr _get_curthread i386: quiet gcc -Warray-bounds
ClosedPublic

Authored by rlibby on Jul 1 2024, 4:49 PM.
Tags
None
Referenced Files
F157780865: D45829.diff
Mon, May 25, 2:42 AM
Unknown Object (File)
Thu, May 7, 7:45 PM
Unknown Object (File)
Tue, Apr 28, 9:28 PM
Unknown Object (File)
Mon, Apr 27, 5:55 PM
Unknown Object (File)
Mon, Apr 27, 8:21 AM
Unknown Object (File)
Sun, Apr 26, 5:58 AM
Unknown Object (File)
Apr 20 2026, 1:57 AM
Unknown Object (File)
Apr 19 2026, 7:39 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable