__INSN_BARRIER(3) |
Library Functions Manual |
__INSN_BARRIER(3) |
NAME
__insn_barrier — compiler reorder barrier
DESCRIPTION
The __insn_barrier() macro prevents GCC from moving code across the barrier. In other words, the compiler is not allowed to reorder read and write commands below the barrier with the code preceding the barrier. Like with the volatile type qualifier, __insn_barrier() may be necessary in some corner cases to prevent the compiler from misoptimizing.
HISTORY
The __insn_barrier() macro first appeared in NetBSD 2.0.