From patchwork Thu Apr 26 21:28:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 10366835 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AD149602DC for ; Thu, 26 Apr 2018 21:29:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98EC51FF6A for ; Thu, 26 Apr 2018 21:29:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D7FB28518; Thu, 26 Apr 2018 21:29:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08AC01FF6A for ; Thu, 26 Apr 2018 21:29:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754786AbeDZV3e (ORCPT ); Thu, 26 Apr 2018 17:29:34 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37793 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754740AbeDZV3d (ORCPT ); Thu, 26 Apr 2018 17:29:33 -0400 Received: by mail-pg0-f66.google.com with SMTP id a13so12435670pgu.4 for ; Thu, 26 Apr 2018 14:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=p2V+UOfQmXDaXa1Vgv5NAtrluA7ULIQUpAl6/WuKtRE=; b=GEVlGkzGHr6JMEeuKpr8AoWqW4UzB9yzWEzjXnB2bc7n7h9eUqNUITm8w9lH8M5B9Y 4enTFn6FEQn+1F+LTnJij410sBe9BJj0ZqRkWrFjo9409t7vJMDjIWYlpko5QGsvWyAe Liaoms5r4a6+UpZIJYMJOBw0iWe5tZSgDrkCwVfDNjnLVJ6x/c35XDDrb3lGOfvA04m3 TIbn56s0pJTxwljrqKkxa1y91M7g27H7Lk5zrnDkdEm8jhDl4uX8ey6Vtah0dVc9v//1 QMojWe7xm/9qpHD6k4JDGFbM9evQbXe5UyXmRpYdToRhqN5G8J3sxKZyOw6nBD74s0/t Mnfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=p2V+UOfQmXDaXa1Vgv5NAtrluA7ULIQUpAl6/WuKtRE=; b=iqDfdP+FINkObpYUcg2v61Mfye5sBrSKW79EjuG+VriKiKeqExkhFqX5H4WEeViL9A MJld8m+SzhUWlbsyZxIG8GOCsfmCD0QzXgqo3xbsEzm/XLu8opCAoJSC3oL8jGJU26Ep s3PYv6vqYN1hegl5C6Qnxn5Qr6ZRCoPD2aV5SPKiT9qTqEIbME4tonfRI5oJ4t9wiVfc YZmSFcr64E0pvSWGXTPa7rMHjvIVXRWhTbWnwicKWBm45QwjMlI1x0AJj0mz7cv54pNa xIik3SUCPZnidpfmLmkTyevooeymxf1QnuQTESrnkoLAOA9AjpV7712W8vsIReXhq6oH LVow== X-Gm-Message-State: ALQs6tBM5R/OCd9nYYN0I+o/YFZGhhwiuHQ6CWoe4POgczTwbNoK2kPr 4EfoQOIDQG2mT5PxCunDSbEfJA== X-Google-Smtp-Source: AIpwx4+kY0WGb4M0e/5WJxjc0qzNSBhyGffF220Nf+6NXOJN/iWsSjhyNJ8X2vPrGqmMs8PZe75tKw== X-Received: by 10.99.114.83 with SMTP id c19mr22263575pgn.425.1524778172804; Thu, 26 Apr 2018 14:29:32 -0700 (PDT) Received: from ndesaulniers0.svl.corp.google.com ([2620:15c:2a3:1:d33:166f:5b79:14b3]) by smtp.gmail.com with ESMTPSA id p71sm36748298pfl.170.2018.04.26.14.29.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Apr 2018 14:29:32 -0700 (PDT) From: Nick Desaulniers To: Masahiro Yamada Cc: Prasad Sodagudi , Nick Desaulniers , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: gcov: enable -fno-tree-loop-im if supported Date: Thu, 26 Apr 2018 14:28:07 -0700 Message-Id: <20180426212807.196279-1-ndesaulniers@google.com> X-Mailer: git-send-email 2.17.0.441.gb46fe60e1d-goog Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Clang does not recognize this compiler option. Reported-by: Prasad Sodagudi Signed-off-by: Nick Desaulniers --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 83b6c541565a..7f653c924c18 100644 --- a/Makefile +++ b/Makefile @@ -623,7 +623,9 @@ all: vmlinux KBUILD_CFLAGS += $(call cc-option,-fno-PIE) KBUILD_AFLAGS += $(call cc-option,-fno-PIE) -CFLAGS_GCOV := -fprofile-arcs -ftest-coverage -fno-tree-loop-im $(call cc-disable-warning,maybe-uninitialized,) +CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \ + $(call cc-option,-fno-tree-loop-im) \ + $(call cc-disable-warning,maybe-uninitialized,) export CFLAGS_GCOV CFLAGS_KCOV # The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default