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
F97822344: D45829.diff
Tue, Oct 1, 10:09 AM
F97801997: D45829.diff
Tue, Oct 1, 8:19 AM
Unknown Object (File)
Mon, Sep 30, 5:30 AM
Unknown Object (File)
Sat, Sep 28, 7:51 AM
Unknown Object (File)
Fri, Sep 27, 7:25 AM
Unknown Object (File)
Tue, Sep 24, 5:22 PM
Unknown Object (File)
Mon, Sep 23, 9:49 PM
Unknown Object (File)
Mon, Sep 23, 9:49 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