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
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)
Mon, Apr 20, 1:57 AM
Unknown Object (File)
Sun, Apr 19, 7:39 PM
Unknown Object (File)
Thu, Apr 16, 11: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