From patchwork Fri Jun 28 05:13:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 168006 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3232363ilk; Thu, 27 Jun 2019 22:13:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcC5feUGMbOgKpbD/ZrEpFZwiZRzaOgHZGTbRvanIuOviaFiPrMp3eo10vJNtaKQZbf5Iv X-Received: by 2002:a63:f346:: with SMTP id t6mr7719902pgj.203.1561698791958; Thu, 27 Jun 2019 22:13:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561698791; cv=none; d=google.com; s=arc-20160816; b=kh1+5oZWvDbVVyrePj7j6jw7lOxeo27Lauj7+M2YbWT6G3CeN/6XQHffiGtK2CfYFl I2dH//6k+UqvW85gEOsI0zRMSbTofG82WC4SrH8nV6+GC6ZKYN9X2C5Lr64l5cpUGyT1 kdk22LnraBPHa4fY1/yK+pPDGvPBCt1RDbeoXAIVfTr5gRLXHwFQ7QVy2+K6TDc+rn8g 5HL+nqWWRVztnz8oGeqLd7J3gXhTixqAbtvs6kN+EvaHeLijcFgpNTwvLMr//yWtq/4U +mJ9wthGkW/DuA/O8c8hzIu4mfS9cWUdTrqGgftbgQloU2p2FytplBBJPimq0buzY50D 8g0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=MccXveOZG26PYdiGquuMm/Tsl+MQAw+vQFv/0yXKsJI=; b=jGq0/iCqfjs7ppP+xfLZQcPlpEDF3FJ/NXn8Ewg3oApKlig4DUx9cMneE0pM+MeQuZ fx6Te28zgQWZJOGLa4XbLiJL6f4+BwnaAqn3uny94wcq4OrXAlR3v316O2C0338plAYs t8qqbYQER6VLeH5voE5a4Vsmpw62WNdbH+ztkegs+uy+aepNbfsFpQ8IGSb/5GAx3rqw Pm9SiB/4RG6ZkmPjZip2i5XONewnEEPOLH4sIHXtBt2BG+khk31KKcreqlZFVlckQx6K jn5TrIwjdHP67kk+DSL60Rd74SIlWoIidh2dLZVshWr5DsBhqUAPTYiUNZPCMM/8J98N 9U6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=MOvfMF2J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5si1273344pfc.245.2019.06.27.22.13.11; Thu, 27 Jun 2019 22:13:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=MOvfMF2J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726960AbfF1FNK (ORCPT + 30 others); Fri, 28 Jun 2019 01:13:10 -0400 Received: from conuserg-07.nifty.com ([210.131.2.74]:37043 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbfF1FNK (ORCPT ); Fri, 28 Jun 2019 01:13:10 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x5S5D3Fw018498; Fri, 28 Jun 2019 14:13:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x5S5D3Fw018498 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1561698784; bh=MccXveOZG26PYdiGquuMm/Tsl+MQAw+vQFv/0yXKsJI=; h=From:To:Cc:Subject:Date:From; b=MOvfMF2J31Prif3h1vHtB2Z7iTX4kztLjn7qIIa4lZbfBqvr1TjSYRNtTOsyvkQe2 kK01pSGcbAB6KP9BRTSDrkqWA2y+0DnKw5cX9tQVvG0On+6sMS8nYMVUOhkVPhPG/B 7VX4FMeSCf4feE+AXRokVc28CmEDv/6xhJDSO3WnQZ5Bm9pU5NE+rMHVfTi7oEPPUY WPEmRmUdFCKAPzZOai1MFQnxrfn0z/WGY/J3n8LA58wFYy+yRIBeF3330hQ7hxaF8S D+YC7C9FsacDEHUryV1jqZXhPZgWMFgQ8pR9Y7onzWz67olHi+6Eu65gsValZ//cJR OilOeLI0GA9fg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: use -E instead of -c for __cc-option Date: Fri, 28 Jun 2019 14:13:00 +0900 Message-Id: <20190628051300.30678-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use -E instead of -c like scripts/Kconfig.include This makes the compiler flag evaluation slightly faster. Signed-off-by: Masahiro Yamada --- scripts/Kbuild.include | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include index f641bb0aa63f..e4329b92d165 100644 --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -113,7 +113,7 @@ as-instr = $(call try-run,\ # __cc-option # Usage: MY_CFLAGS += $(call __cc-option,$(CC),$(MY_CFLAGS),-march=winchip-c6,-march=i586) __cc-option = $(call try-run,\ - $(1) -Werror $(2) $(3) -c -x c /dev/null -o "$$TMP",$(3),$(4)) + $(1) -Werror $(2) $(3) -E -x c /dev/null -o "$$TMP",$(3),$(4)) # Do not attempt to build with gcc plugins during cc-option tests. # (And this uses delayed resolution so the flags will be up to date.)