From patchwork Thu Sep 10 13:51:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11769371 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 188A6618 for ; Thu, 10 Sep 2020 21:27:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EF4EC221E3 for ; Thu, 10 Sep 2020 21:27:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599773271; bh=wDBghXZe8kluN8YfN5whMmcG1buegyspf54V0ZHlhMM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=bmgrzKs1QpTkoWoOVQZaFF+d0y1oFiTf7Nh7D1OHk5yMe4rpJNtRludYykQe7L9YT t7xaKA+5X+DSgJAGWdhdWavIwLR6/dbVZ45FXAb4tnp395GunuKboTTnw4w5aWambJ 4Q14dBlUTbZEMHbmG34lbeDnx6RMj59GL1IPGKXE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727083AbgIJV1R (ORCPT ); Thu, 10 Sep 2020 17:27:17 -0400 Received: from condef-04.nifty.com ([202.248.20.69]:29600 "EHLO condef-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731080AbgIJOJt (ORCPT ); Thu, 10 Sep 2020 10:09:49 -0400 Received: from conuserg-10.nifty.com ([10.126.8.73])by condef-04.nifty.com with ESMTP id 08ADsjMN032624; Thu, 10 Sep 2020 22:54:45 +0900 Received: from oscar.flets-west.jp (softbank126090211135.bbtec.net [126.90.211.135]) (authenticated) by conuserg-10.nifty.com with ESMTP id 08ADpSIx001308; Thu, 10 Sep 2020 22:51:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 08ADpSIx001308 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1599745892; bh=GfWXsevD+/JY+AqdR3iC3oPYU2Z7Pjb6F8wdpSkfPC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IwK2cMh39J9rOU6iXiFeF+EX6KMfOKNDrFuPTU9GwJWA4caRNJr9dSGq/Ruh2vaLy Khd3KqlsFN0VJm26UgMrOrZvhmsLUey9YdRp2tI7/ZafSb3+Bw0CgFNhiB10ErJePx hoRpqJ8vM29aGVyIB9p68vzSk1WdVT1zxdYoOt51bw/cSa2Yd/Ube9u3Cig8SQDoVI t4EnwukTTHdxQko1FX1FhGJnK12xwC6Unpb0CHllIXHw7uUuIILPDXqBJlQpsvXHT1 wM8a+Om0gB0CVPljU8Z4UIntzifK8gaKCeIoNHtAEp8/Fv9bYjDZIV7JHsFuIKQ+dN N8Ptvnr02at/A== X-Nifty-SrcIP: [126.90.211.135] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ingo Molnar , Masahiro Yamada , Michal Marek , Nathan Chancellor , Nick Desaulniers , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] kbuild: remove cc-option test of -fno-stack-check Date: Thu, 10 Sep 2020 22:51:19 +0900 Message-Id: <20200910135120.3527468-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200910135120.3527468-1-masahiroy@kernel.org> References: <20200910135120.3527468-1-masahiroy@kernel.org> MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. Here is the godbolt: https://godbolt.org/z/59cK6o Signed-off-by: Masahiro Yamada --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1b6abecc5cab..5102c89d3167 100644 --- a/Makefile +++ b/Makefile @@ -934,7 +934,7 @@ KBUILD_CFLAGS += -fno-merge-all-constants KBUILD_CFLAGS += $(call cc-option,-fmerge-constants) # Make sure -fstack-check isn't enabled (like gentoo apparently did) -KBUILD_CFLAGS += $(call cc-option,-fno-stack-check,) +KBUILD_CFLAGS += -fno-stack-check # conserve stack if available KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)