From patchwork Wed Jun 8 21:00:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 12888 Received: (qmail 76157 invoked by alias); 8 Jun 2016 21:01:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 76140 invoked by uid 89); 8 Jun 2016 21:01:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=X8664, X86-64, UD:memcopy.h, memcopyh X-HELO: mga14.intel.com X-ExtLoop1: 1 Date: Wed, 8 Jun 2016 14:00:59 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] X86-64: Add dummy memcopy.h and wordcopy.c Message-ID: <20160608210059.GA6694@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) 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. Tested on x86-64. I will check it in shortly. H.J. --- * sysdeps/x86_64/memcopy.h: New file. * sysdeps/x86_64/wordcopy.c: Likewise. --- sysdeps/x86_64/memcopy.h | 1 + sysdeps/x86_64/wordcopy.c | 1 + 2 files changed, 2 insertions(+) create mode 100644 sysdeps/x86_64/memcopy.h create mode 100644 sysdeps/x86_64/wordcopy.c diff --git a/sysdeps/x86_64/memcopy.h b/sysdeps/x86_64/memcopy.h new file mode 100644 index 0000000..590b6cb --- /dev/null +++ b/sysdeps/x86_64/memcopy.h @@ -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 index 0000000..590b6cb --- /dev/null +++ b/sysdeps/x86_64/wordcopy.c @@ -0,0 +1 @@ +/* X86-64 doesn't use memory copy functions. */