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: 335734 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 83CC2140099 for ; Tue, 1 Apr 2014 21:24:19 +1100 (EST) 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; q=dns; s= default; b=RdrRPKcKz3uPEfVCC2RbhFXQWp2LGvMqQCET6smAHc877U4z2mt2I D9XWK5YRjCcY9Dwmv/U31LXR6Sh17o0GTAfG+Jt4SUSwoGSxdtUkGpXUPG66sfRw AwcwSXQK0cvjNtl5DWdDU/NVe+Irf3wiZI0ZhH+r9FyXA6mk3O4h5U= 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; s=default; bh=9Rxl8dz2b5Uf/ZtM14Iac6d7RX0=; b=JNwykdlIX03xttIsWalUCrPSY1aZ cMhby98cBHlrhysl6Jo6G4dSS8b2X6ZPn1rAHBE2oFFVfv4kNMkQvy14dLwbV9Fz ITY51PZc5ziZhlJfI4lLMhsH41iWPCLa6jpi9Qu2ajpK4P9k1bxay1jrWf/vRjzG JzZwzYGGVWpWGvc= Received: (qmail 20680 invoked by alias); 1 Apr 2014 10:24:13 -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 20650 invoked by uid 89); 1 Apr 2014 10:24:12 -0000 Authentication-Results: sourceware.org; auth=none 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-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; bh=vmgt+GuvUHEnBmMexDuv+1sMfxP170BCZT6aHbMR0C8=; b=jZmehaGLyRLF0EjBUsBpJYzY9EvvU/o/yhIvSZOTvDU+JqWn9wRutUXuOMGOgUGvfs ur2O+n+X9XoNNVNepldeAR3dflKue5E9nI2RDCT/kHL1fNdkFs02RikVax1a4KJWjDpj pZvmPHtEny18YP8DC6pB1iWMVNlY34HPz+O2pUuTs8nOUZFtPQff9xV2xE/Yv9Mi4Xg2 9QP486vuGA2pBCsF0YXUu8o//1DU9hQXAqytFS6osEgW+xMLE+8tUb1sYQ8IipSr1fcP hCaw+KGAaLVt6gH6tMpKG9sJYAzI/mGh8xY82bkVCXMH5buQrKnnX2QGk0VX1ALSIYHz TbYA== X-Gm-Message-State: ALoCoQnAkYk4nr6EtlclQbKJ29TiKNbAj6Cxh/Zc5N4I+xoLwhzE5nrIzTQgsbvWUGeEy3qH4jsR 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> 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