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, Dec 13, 8:47 PM
Unknown Object (File)
Nov 23 2024, 11:59 AM
Unknown Object (File)
Nov 22 2024, 3:05 AM
Unknown Object (File)
Nov 19 2024, 6:03 AM
Unknown Object (File)
Nov 19 2024, 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
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