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)
Fri, Nov 22, 10:10 PM
Unknown Object (File)
Mon, Nov 18, 3:30 AM
Unknown Object (File)
Mon, Nov 18, 3:26 AM
Unknown Object (File)
Sun, Nov 17, 11:57 PM
Unknown Object (File)
Sun, Nov 17, 11:29 PM
Unknown Object (File)
Sun, Nov 17, 5:21 AM
Unknown Object (File)
Sat, Nov 16, 11:56 PM
Unknown Object (File)
Thu, Nov 14, 6:05 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