Page MenuHomeFreeBSD

i386 kernel __storeload_barrier: quiet gcc -Warray-bounds
ClosedPublic

Authored by rlibby on Sat, Jun 22, 5:52 PM.
Tags
None
Referenced Files
F86942806: D45695.diff
Thu, Jun 27, 3:39 PM
Unknown Object (File)
Tue, Jun 25, 4:02 PM
Unknown Object (File)
Mon, Jun 24, 1:49 AM
Subscribers

Details

Summary

Use a constant input operand instead of an output operand to tell the
compiler about OFFSETOF_MONITORBUF. If we tell it we are writing to
*(u_int *)
OFFSETOF_MONITORBUF, it rightly complains, but we aren't.
The memory clobber already covers the necessary semantics for the
compiler.

Test Plan

No testing done yet! Just following D45694. Will build i386 GENERIC and disassemble membarrier_action_seqcst

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable