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)
Sun, Feb 22, 7:42 AM
Unknown Object (File)
Thu, Feb 19, 1:03 PM
Unknown Object (File)
Sun, Feb 8, 12:20 PM
Unknown Object (File)
Sun, Feb 8, 10:39 AM
Unknown Object (File)
Jan 31 2026, 6:44 AM
Unknown Object (File)
Jan 30 2026, 8:25 AM
Unknown Object (File)
Dec 14 2025, 5:22 AM
Unknown Object (File)
Nov 26 2025, 11:00 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