summaryrefslogtreecommitdiffstats
path: root/sys/dev/ips/ips_commands.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-01-28 02:58:32 +0000
committermarcel <marcel@FreeBSD.org>2005-01-28 02:58:32 +0000
commita52d6034c25c293be752e89574f77b0c7059ae46 (patch)
tree9a398ed9168b67be2fb2b44a5309db5de1d71d23 /sys/dev/ips/ips_commands.c
parent83ff245674966bd02fc26997d1be7982caa5c91d (diff)
downloadFreeBSD-src-a52d6034c25c293be752e89574f77b0c7059ae46.zip
FreeBSD-src-a52d6034c25c293be752e89574f77b0c7059ae46.tar.gz
Wrap calls to memcpy(3) in a function called block_copy(). This way,
and as long as we're not compiling with IPA, gcc(1) won't optimize the call away. The whole purpose of using memcpy(3) is to avoid misaligned loads and stores when we need to read or write the value in the unaligned memory location. But if gcc(1) optimizes the call to memcpy(3) away, it will typically introduce misaligned loads and stores. In this context that's not a good idea.
Diffstat (limited to 'sys/dev/ips/ips_commands.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud