]> sourceware.org Git - glibc.git/commit
tile: allow memcpy(p, p, n) without corrupting memory at "p"
authorChris Metcalf <cmetcalf@tilera.com>
Fri, 11 May 2012 21:59:23 +0000 (17:59 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Mon, 14 May 2012 19:46:12 +0000 (15:46 -0400)
commit575298fcd298bb3ff7d7ba0d0bceac9429ae2b5d
tree8c0ab53a454e65decce6edcc2bd64c4408feadb1
parentcbf92fc46644e084315e3fbe7e5ccb7cb499284e
tile: allow memcpy(p, p, n) without corrupting memory at "p"

Although this is not required by the definition of memcpy(),
in practice this sort of thing does happen, and it's easy to make
the code robust by doing nothing in this case.  (Since structure
copy causes the compiler to emit a memcpy, in the case where the
target structure is the same as the destination, we were seeing
corruption.)
ChangeLog.tile
sysdeps/tile/tilegx/memcpy.c
This page took 0.039707 seconds and 5 git commands to generate.