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)
Wed, Jul 24, 2:49 AM
Unknown Object (File)
Fri, Jul 12, 10:27 AM
Unknown Object (File)
Sat, Jul 6, 4:12 PM
Unknown Object (File)
Jul 3 2024, 4:16 PM
Unknown Object (File)
Jul 2 2024, 11:25 PM
Unknown Object (File)
Jul 2 2024, 8:32 PM
Unknown Object (File)
Jul 2 2024, 8:32 PM
Unknown Object (File)
Jul 2 2024, 8:31 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