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)
Fri, Nov 22, 3:05 AM
Unknown Object (File)
Tue, Nov 19, 6:03 AM
Unknown Object (File)
Tue, Nov 19, 4:07 AM
Unknown Object (File)
Oct 14 2024, 8:52 AM
Unknown Object (File)
Oct 5 2024, 11:14 AM
Unknown Object (File)
Oct 3 2024, 9:01 PM
Unknown Object (File)
Oct 2 2024, 10:55 PM
Unknown Object (File)
Oct 1 2024, 10:09 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 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