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
Unknown Object (File)
Sat, Oct 11, 12:42 PM
Unknown Object (File)
Sat, Oct 11, 4:31 AM
Unknown Object (File)
Sat, Oct 11, 4:31 AM
Unknown Object (File)
Sat, Oct 11, 4:31 AM
Unknown Object (File)
Fri, Oct 10, 9:27 PM
Unknown Object (File)
Sep 6 2025, 8:35 PM
Unknown Object (File)
Aug 15 2025, 12:05 AM
Unknown Object (File)
Aug 4 2025, 9:15 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 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