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
F102954520: D45829.diff
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
Unknown Object (File)
Oct 1 2024, 8:19 AM
Unknown Object (File)
Sep 30 2024, 5:30 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58444
Build 55332: arc lint + arc unit