Page MenuHomeFreeBSD

libthr _get_curthread amd64: quiet gcc -Warray-bounds
ClosedPublic

Authored by rlibby on Jul 1 2024, 4:49 PM.
Tags
None
Referenced Files
F102609027: D45828.diff
Thu, Nov 14, 6:05 PM
F102583849: D45828.id140516.diff
Thu, Nov 14, 9:29 AM
F102550756: D45828.id140516.diff
Wed, Nov 13, 10:49 PM
Unknown Object (File)
Oct 3 2024, 9:49 AM
Unknown Object (File)
Oct 1 2024, 1:26 PM
Unknown Object (File)
Oct 1 2024, 1:24 PM
Unknown Object (File)
Oct 1 2024, 11:21 AM
Unknown Object (File)
Sep 23 2024, 12:02 AM
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 fs segment.
Otherwise gcc complains if we tell it we are reading memory offset 0x10.

Diff Detail

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