From patchwork Mon Mar 17 12:23:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 105 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx23.g.dreamhost.com (caibbdcaabja.dreamhost.com [208.113.200.190]) by wilcox.dreamhost.com (Postfix) with ESMTP id 0F92E3600B0 for ; Mon, 17 Mar 2014 05:24:04 -0700 (PDT) Received: by homiemail-mx23.g.dreamhost.com (Postfix, from userid 14307373) id C2FCF61C1E5A0; Mon, 17 Mar 2014 05:24:03 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx23.g.dreamhost.com 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 homiemail-mx23.g.dreamhost.com (Postfix) with ESMTPS id 944EF6004EA33 for ; Mon, 17 Mar 2014 05:24:03 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=aRo09SjSr/jBKkLdDDpOD45lF10uPJn L7jNbCxC5XGdazofH4NqzNDxGcQTkXcIQ5WpLTObiCp67juH6QqKje9Wb+FRmT4x MsbHHGVqjycaF0cLcT3IdbdA7ybkXEogdmQpHWLM7YVg4Rm02pdf1g63c4tYuIoL 2nWv+odcuME4= 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:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=WkfxADn35ZBjPZ8a1pQgST9mjPQ=; b=nZCyO owuYTXALUWh6nimaoUxzwyilgFV2vHI89czkA/GsFd+u6/TrHD51fwbmm1Mcekte ak3kH8eQx5rIKr09MuWR45SITVHi4SxSSF8kdIzBEAGWLQRxAKFsq9BD2YHEd0bV pD9aLkzdGknIC/MJ3AXj/ydmc05JT0YSl+gdQE= Received: (qmail 18880 invoked by alias); 17 Mar 2014 12:23:40 -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 18753 invoked by uid 89); 17 Mar 2014 12:23:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-we0-f175.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=H1ZmS+hpnzdw6m8cqdOa8OScpooQq5Hi+ZtAKsIGfIY=; b=L+ioECsJ0y8O5/5lx7kpdCtZooh/kRQPn/N0TYLnIpShx4ZGljS0/J8ANXUYXFj12K TvRtCFdCAg9d6tTZbE1QKRTWB5QVOk7J1waR8wDBDtGDBVaK4DIc+mFXBgOozu0+irBy bmnldRoQfuSprxhTBbf1YTTyiCasG/fO2ooUc/HRE75HS/zctTmQyxMLovbxp3KVlX+o NkjkoxDUPVSmOJ+LtZhRJfdFNVWzJQ9soZ7cSgDkPrNdaHUB1cf6DPtfI5aZWAh7k15U BC+YKTaQ9RAo0JcQjBiYocYAp78XONm+iDyeRhNFcHuUeOgH38JSPndDy4KXeheq/gqz YuRg== X-Gm-Message-State: ALoCoQla11Z84JOjpD+tVKAiuT7aPDml6oAo0WkkC4MoZzzm3IC01qcZnN5cgsbU7YJqAW/QBgnd X-Received: by 10.180.13.11 with SMTP id d11mr1644405wic.3.1395059011885; Mon, 17 Mar 2014 05:23:31 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH 3/7] Fix HP_SMALL_TIMING_AVAIL -Wundef warnings Date: Mon, 17 Mar 2014 12:23:20 +0000 Message-Id: <1395059004-20960-3-git-send-email-will.newton@linaro.org> In-Reply-To: <1395059004-20960-1-git-send-email-will.newton@linaro.org> References: <1395059004-20960-1-git-send-email-will.newton@linaro.org> X-DH-Original-To: glibc@patchwork.siddhesh.in ChangeLog: 2014-03-17 Will Newton * sysdeps/generic/ldsodefs.h: Check whether HP_SMALL_TIMING_AVAIL is defined with #ifdef rather than #if. --- sysdeps/generic/ldsodefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h index 65cd709..d61b9f9 100644 --- a/sysdeps/generic/ldsodefs.h +++ b/sysdeps/generic/ldsodefs.h @@ -322,7 +322,7 @@ struct rtld_global /* The object to be initialized first. */ EXTERN struct link_map *_dl_initfirst; -#if HP_TIMING_AVAIL || HP_SMALL_TIMING_AVAIL +#if HP_TIMING_AVAIL || defined HP_SMALL_TIMING_AVAIL /* Start time on CPU clock. */ EXTERN hp_timing_t _dl_cpuclock_offset; #endif @@ -535,7 +535,7 @@ struct rtld_global_ro /* All search directories defined at startup. */ EXTERN struct r_search_path_elem *_dl_init_all_dirs; -#if HP_TIMING_AVAIL || HP_SMALL_TIMING_AVAIL +#if HP_TIMING_AVAIL || defined HP_SMALL_TIMING_AVAIL /* Overhead of a high-precision timing measurement. */ EXTERN hp_timing_t _dl_hp_timing_overhead; #endif