]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
X86-64: Add dummy memcopy.h and wordcopy.c
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2016 11:38:34 +0000 (04:38 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jun 2016 11:38:34 +0000 (04:38 -0700)
Since x86-64 no longer uses memory copy functions, add dummy memcopy.h
and wordcopy.c to reduce code size.  It reduces the size of libc.so by
about 1 KB.

* sysdeps/x86_64/memcopy.h: New file.
* sysdeps/x86_64/wordcopy.c: Likewise.

ChangeLog
sysdeps/x86_64/memcopy.h [new file with mode: 0644]
sysdeps/x86_64/wordcopy.c [new file with mode: 0644]

index e5a6209053d5ede6156188111c269b928fe41c7c..9c417f23212f73ac030d9c763ba082e452e8ca65 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/memcopy.h: New file.
+       * sysdeps/x86_64/wordcopy.c: Likewise.
+
 2016-06-09  Florian Weimer  <fweimer@redhat.com>
 
        Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
diff --git a/sysdeps/x86_64/memcopy.h b/sysdeps/x86_64/memcopy.h
new file mode 100644 (file)
index 0000000..590b6cb
--- /dev/null
@@ -0,0 +1 @@
+/* X86-64 doesn't use memory copy functions.  */
diff --git a/sysdeps/x86_64/wordcopy.c b/sysdeps/x86_64/wordcopy.c
new file mode 100644 (file)
index 0000000..590b6cb
--- /dev/null
@@ -0,0 +1 @@
+/* X86-64 doesn't use memory copy functions.  */