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: "H.J. Lu" X-Patchwork-Id: 632497 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3rQ17V5HKQz9sBM for ; Thu, 9 Jun 2016 07:01:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=G5RJxHvN; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :mime-version:content-type; q=dns; s=default; b=A9X5H3hTwijKDIKt zy2Lv3RjV3Q4Bkxw3zr7b5S18NCWiS6y/BTGWf4sviIfZi9DmjhFJyx31YS0aT2D 47SkCrcXnwhgkInVgzHOFT+rKRUiz4O4wz3f0XqI2HreKGzXiqWyvT0YFi30TMxi ZHQSE4AYODFccRYXvD1hCNrF0bk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :mime-version:content-type; s=default; bh=SMaaO5UO2FQOPsqsLn0CXB sRsRI=; b=G5RJxHvNOU4WTLaK4UxVBGhRcolScCQLRUIHzFX7hmO2VCt1A3pE6c d12bZSbwtltEUyDDfHpQFgMf8rqWIiZc45iSLWNRciUTEuq4DZKsmWf/eC9aO85I kgRj0v3DxVvt79eyaXqE+hXHSXl5K9sEAhbfLsWFc+gEdp03I2mTo= 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. */