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
F103613724: D45828.diff
Wed, Nov 27, 3:54 AM
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
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