Page MenuHomeFreeBSD

libthr _get_curthread i386: quiet gcc -Warray-bounds
ClosedPublic

Authored by rlibby on Mon, Jul 1, 4:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 5, 5:20 PM
Unknown Object (File)
Fri, Jul 5, 12:17 PM
Unknown Object (File)
Thu, Jul 4, 12:23 AM
Unknown Object (File)
Wed, Jul 3, 10:33 PM
Unknown Object (File)
Wed, Jul 3, 9:01 PM
Unknown Object (File)
Wed, Jul 3, 8:12 PM
Unknown Object (File)
Wed, Jul 3, 8:02 PM
Unknown Object (File)
Wed, Jul 3, 8:00 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