about summary refs log tree commit diff
path: root/ChangeLog.tile
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2012-05-11 17:59:23 -0400
committerChris Metcalf <cmetcalf@tilera.com>2012-05-14 15:46:12 -0400
commit575298fcd298bb3ff7d7ba0d0bceac9429ae2b5d (patch)
tree8c0ab53a454e65decce6edcc2bd64c4408feadb1 /ChangeLog.tile
parentcbf92fc46644e084315e3fbe7e5ccb7cb499284e (diff)
downloadglibc-575298fcd298bb3ff7d7ba0d0bceac9429ae2b5d.tar.gz
glibc-575298fcd298bb3ff7d7ba0d0bceac9429ae2b5d.tar.xz
glibc-575298fcd298bb3ff7d7ba0d0bceac9429ae2b5d.zip
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.)
Diffstat (limited to 'ChangeLog.tile')
-rw-r--r--ChangeLog.tile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog.tile b/ChangeLog.tile
index 5cdc293f8e..83136aa6c3 100644
--- a/ChangeLog.tile
+++ b/ChangeLog.tile
@@ -1,5 +1,10 @@
 2012-05-12  Chris Metcalf  <cmetcalf@tilera.com>
 
+	* sysdeps/tile/tilegx/memcpy.c: Allow memcpy(p, p, n)
+	without corrupting memory at "p".
+
+2012-05-12  Chris Metcalf  <cmetcalf@tilera.com>
+
 	* sysdeps/tile/__tls_get_addr.S: Use __WORDSIZE, not _LP64.
 
 2012-05-12  Chris Metcalf  <cmetcalf@tilera.com>