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
F97835407: D45828.diff
Tue, Oct 1, 11:21 AM
Unknown Object (File)
Mon, Sep 23, 12:02 AM
Unknown Object (File)
Sun, Sep 15, 12:38 AM
Unknown Object (File)
Wed, Sep 11, 1:32 PM
Unknown Object (File)
Sun, Sep 8, 10:13 PM
Unknown Object (File)
Sun, Sep 8, 9:56 PM
Unknown Object (File)
Sun, Sep 8, 7:12 AM
Unknown Object (File)
Tue, Sep 3, 6:25 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 Not Applicable
Unit
Tests Not Applicable