cvs commit: src/tools/regression/ia64/unaligned test.c

Marcel Moolenaar marcel at
Thu Jan 27 18:58:33 PST 2005

marcel      2005-01-28 02:58:32 UTC

  FreeBSD src repository

  Modified files:
    tools/regression/ia64/unaligned test.c 
  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

More information about the cvs-src mailing list