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, Mar 13, 3:48 PM
Unknown Object (File)
Mon, Mar 9, 12:58 PM
Unknown Object (File)
Mon, Feb 23, 3:15 PM
Unknown Object (File)
Feb 8 2026, 2:19 PM
Unknown Object (File)
Feb 7 2026, 10:08 PM
Unknown Object (File)
Feb 1 2026, 6:43 AM
Unknown Object (File)
Jan 30 2026, 4:41 PM
Unknown Object (File)
Jan 22 2026, 1:21 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 fs segment.
Otherwise gcc complains if we tell it we are reading memory offset 0x10.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58443
Build 55331: arc lint + arc unit