From patchwork Wed May 24 03:13:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 20555 Received: (qmail 123768 invoked by alias); 24 May 2017 03:13:08 -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 123739 invoked by uid 89); 24 May 2017 03:13:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-oi0-f49.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=8eqQkkZZkfE1gAqNnspXV6OgYMsyBUGGZXRjWEJbBCY=; b=svYWgm+3+NcmAk9kUj4L9D6Wf2DivcMIBc8uL62dI6z8x4SrWuOHWb2g+mJrrCO6yQ 8bYaS00POkVw0VNP0aNNSuwMqbVRSKWcw+KS3oKyhp0W05Mn4EuS8HLQQ9WHcHTBIdiH aoUMt2RPWEksAn/SKnQgnIcdWOETCAVunkQyTKxqBLlX+OFcmFT0UkYVM4rnKeDakK5I t9iLZioEuIdGaAPgA4QVNYZvwJpu1CCug0chcRDViKylcpFK46z6P5Efy7L8XEh2WJEa 3GmSkaabFoq1xVgl0IP8kOaba5LwswIyuikarpiXcR22caeXWWiV2a1YIWM/+ikHG+yk sMRQ== X-Gm-Message-State: AODbwcAQwYLik/ShKLvruY9R4yQqN+FjjBT0FaoHnkDMG6+dH5BgM0OF vHGDY9ZuIBxjoURi X-Received: by 10.157.68.150 with SMTP id v22mr3181205ote.250.1495595585576; Tue, 23 May 2017 20:13:05 -0700 (PDT) Date: Tue, 23 May 2017 20:13:03 -0700 From: "H.J. Lu" To: GNU C Library Subject: [PATCH] x86: Don't include cacheinfo.c in ld.so Message-ID: <20170524031303.GA12000@gmail.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.8.0 (2017-02-23) Since cacheinfo.c isn't used by ld.so, there is no need to include it in ld.so. Any comments. H.J. --- * sysdeps/x86/cacheinfo.c: Skip if not in libc. --- sysdeps/x86/cacheinfo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sysdeps/x86/cacheinfo.c b/sysdeps/x86/cacheinfo.c index 43c0b63..12ffeef 100644 --- a/sysdeps/x86/cacheinfo.c +++ b/sysdeps/x86/cacheinfo.c @@ -16,6 +16,8 @@ License along with the GNU C Library; if not, see . */ +#if IS_IN (libc) + #include #include #include @@ -769,3 +770,5 @@ intel_bug_no_cache_info: store becomes faster. */ __x86_shared_non_temporal_threshold = __x86_shared_cache_size * 6; } + +#endif