Date: Sun, 03 Jul 2005 01:11:55 -0000 From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/tools/regression/ia64/unaligned test.c Message-ID: <200501280258.j0S2wXlZ081403@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2005-01-28 02:58:32 UTC FreeBSD src repository Modified files: tools/regression/ia64/unaligned test.c Log: 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. Revision Changes Path 1.5 +9 -2 src/tools/regression/ia64/unaligned/test.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200501280258.j0S2wXlZ081403>