From patchwork Tue Apr 1 10:24:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 27526 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f200.google.com (mail-ie0-f200.google.com [209.85.223.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1661620553 for ; Tue, 1 Apr 2014 10:24:24 +0000 (UTC) Received: by mail-ie0-f200.google.com with SMTP id lx4sf33511081iec.7 for ; Tue, 01 Apr 2014 03:24:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=vmgt+GuvUHEnBmMexDuv+1sMfxP170BCZT6aHbMR0C8=; b=go8pfEB1NOTMp5QENk/LAPgOHYqm2QBoIGixVivlmmg6kNVCV+tfThAd75ehjXd5qo u6XKYL46pcip2gNreyPuniRjmQcKklZg/WX4dz/K2mOcRBIN7MS25HJ8ZpP2H+iV7HmX jj4DHi4cDOBu6iZQjxzgwCKD2TsOqaod6uXuFXXyWBWmdT9Q5rok5S9GmRbX6xh6RBVA uqRJwDnell4vNXEmpa1hXkKAj+W8LJlhseHI9Fp5SOGIjYXoVfUUfOwMP9Oyaj+I01vP gh+peaTEIX94WpePfMcojdbcD18YGHCSSfw/3jM2VPrc8be9B6KBW9M1Sb4KoWgX9KhV WCgw== X-Gm-Message-State: ALoCoQkdEiqLJm+1bp13z4ro1Dl0ZwQAKUwxpXoLB/ZqDJ2inYgIYxCmOKOBQ2rqQScyLNTTGfEU X-Received: by 10.182.70.106 with SMTP id l10mr12922591obu.7.1396347864301; Tue, 01 Apr 2014 03:24:24 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.91.105 with SMTP id y96ls1495971qgd.82.gmail; Tue, 01 Apr 2014 03:24:24 -0700 (PDT) X-Received: by 10.220.104.210 with SMTP id q18mr28260885vco.9.1396347864190; Tue, 01 Apr 2014 03:24:24 -0700 (PDT) Received: from mail-vc0-x231.google.com (mail-vc0-x231.google.com [2607:f8b0:400c:c03::231]) by mx.google.com with ESMTPS id i16si1724151vcv.11.2014.04.01.03.24.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 01 Apr 2014 03:24:24 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c03::231 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c03::231; Received: by mail-vc0-f177.google.com with SMTP id if17so9144775vcb.22 for ; Tue, 01 Apr 2014 03:24:24 -0700 (PDT) X-Received: by 10.52.34.4 with SMTP id v4mr65228vdi.42.1396347863992; Tue, 01 Apr 2014 03:24:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp223612vcv; Tue, 1 Apr 2014 03:24:23 -0700 (PDT) X-Received: by 10.68.113.68 with SMTP id iw4mr12657167pbb.119.1396347863214; Tue, 01 Apr 2014 03:24:23 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id cb4si5718450pbc.495.2014.04.01.03.24.22 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Apr 2014 03:24:23 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-48767-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 20680 invoked by alias); 1 Apr 2014 10:24:13 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 20650 invoked by uid 89); 1 Apr 2014 10:24:12 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f46.google.com X-Received: by 10.194.9.73 with SMTP id x9mr3093713wja.79.1396347847941; Tue, 01 Apr 2014 03:24:07 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] benchtests: Build ffs and ffsl benchtests with -fno-builtin Date: Tue, 1 Apr 2014 11:24:01 +0100 Message-Id: <1396347841-32675-1-git-send-email-will.newton@linaro.org> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c03::231 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 Without this flag it is possible that the compiler will optimize away the calls to ffs/ffsll. ChangeLog: 2014-03-31 Will Newton * benchtests/Makefile (CFLAGS-bench-ffs.c): Add -fno-builtin. (CFLAGS-bench-ffsll.c): Likewise. --- benchtests/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/benchtests/Makefile b/benchtests/Makefile index 5aa2eb1..525ab09 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -37,6 +37,9 @@ stdlib-bench := strtod benchset := $(string-bench-all) $(stdlib-bench) +CFLAGS-bench-ffs.c += -fno-builtin +CFLAGS-bench-ffsll.c += -fno-builtin + LDLIBS-bench-acos = -lm LDLIBS-bench-acosh = -lm LDLIBS-bench-asin = -lm