Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1218631pxk; Thu, 10 Sep 2020 09:49:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylPeJDBZUsgpHhY8MP3sBLRlyelYd7XvPkOhqJEN0QKzG9489sb02+B0Xx0Xl4MzVYjaPd X-Received: by 2002:a50:9fa1:: with SMTP id c30mr4214449edf.207.1599756573287; Thu, 10 Sep 2020 09:49:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599756573; cv=none; d=google.com; s=arc-20160816; b=mMxcLn60lX/ajUtH+H9JUh+HId6YWb5cwJj8P0yjjIw2P69jQ9MQJp0n99daOzaoyS xjA2RHRuQDtS1BqSIJfVjwLtAe60c1WS9vTSWavFFzIeZEnyuXn/hz/8zDOaDJqyd/pk IiSNuTJWfWaMg3oP8jyO1vhmSgUcJgdi6+e6DwxTDnxal/mWZAHgqkxHKypXcruv7Icb OhNPuaNA/sJn7m8TBzo05CLrqg1gsEqXurYq/HG1ysv5R/ZClTbCGN7oI/MRMKrHUhes pEKAvWXjUKxwpa1o3H9KnrJE1iarcgKLmmckqI1Qk4pg4rHtTTfn4a4+bdGLRF3CQjUp jTVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=+6n9Ppki6VT5Ezj3CVThftdXoJBLCgvbs+E684WSLWQ=; b=RWb2LKxI4q1zoZUuwlsVceE75kjTi+n0QcPkAIZyXXSOSNhRBuhH37AewADAWJ/mQ3 ASphtdep34imtSowQpttgXKIPUr5m66C1ki1GOqZ5QMyJPjS/ooh7uwVYdFDI3Y4PhxC zaR6aWNuqzKomugMXGoNFoEzj8Ho54dxdKEcKgfxfFZNjbD+iQp6vchLFTGJ+qq50jy6 U2+jEHZ5C5cARya+rROnKdc63Rqyq9QNYs7nocU9VrBjUf82krLaNJgkw0RSHGUH5BYj 2U4uFSHsKP5epu5Z1CzRWlKl0+/tgDGukciB6IHN3BZyJj+jpAJ2phCA+5zs7w3Pz0TP kYBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Db8+aEeR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d26si4023512edu.514.2020.09.10.09.49.09; Thu, 10 Sep 2020 09:49:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Db8+aEeR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726780AbgIJQsX (ORCPT + 99 others); Thu, 10 Sep 2020 12:48:23 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:59044 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726987AbgIJQmk (ORCPT ); Thu, 10 Sep 2020 12:42:40 -0400 Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 08AGg6hG030582; Fri, 11 Sep 2020 01:42:07 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 08AGg6hG030582 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1599756127; bh=+6n9Ppki6VT5Ezj3CVThftdXoJBLCgvbs+E684WSLWQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Db8+aEeRsHxQzx3ItxeUj48irYaveRBOu/6JsWRdSfEEhZG9EUQf+bfQkMrgOsYZn fhPv4hEmmPbm6IXE8FnFumAIUjFf7QfTk/E7JB8algWB3uJqWN1Pduh56bRbm9Y5S8 5b+FkuJo61aSJozVPBUlXbs7If45fPxLGxdUx+URnZlXOE6btEAwrnODZzzmI4K87c Bo41kO4sju+7FxyIAP2D0AArLne8ArrHEEf8nib+AEP14OoTQKlnG2hE48YdlB0hGC hcEVzXZBAmPLKxUu96Yz0vVk9Qc23MWg3No9XiRnMnd8MCo2BjdcGMfQXWTX1P9qev viWmRySeLk7Xw== X-Nifty-SrcIP: [209.85.216.51] Received: by mail-pj1-f51.google.com with SMTP id n3so1511542pjq.1; Thu, 10 Sep 2020 09:42:07 -0700 (PDT) X-Gm-Message-State: AOAM5310pUOokFVmUiYz+ydD+tHEW19GpuD6myNgYHI5fSPujQTqvtks qYAtN4Kpevq+mR9mpavoHjwq0HYofepw/ZUajcQ= X-Received: by 2002:a17:902:ac8b:b029:d0:89f4:6220 with SMTP id h11-20020a170902ac8bb02900d089f46220mr6535483plr.8.1599756126225; Thu, 10 Sep 2020 09:42:06 -0700 (PDT) MIME-Version: 1.0 References: <20200910135120.3527468-1-masahiroy@kernel.org> <20200910135120.3527468-2-masahiroy@kernel.org> <20200910163311.GB3119896@ubuntu-n2-xlarge-x86> In-Reply-To: <20200910163311.GB3119896@ubuntu-n2-xlarge-x86> From: Masahiro Yamada Date: Fri, 11 Sep 2020 01:41:29 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/4] kbuild: remove cc-option test of -fno-merge-all-constants To: Nathan Chancellor Cc: Linux Kbuild mailing list , Ingo Molnar , Michal Marek , Nick Desaulniers , clang-built-linux , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 11, 2020 at 1:33 AM Nathan Chancellor wrote: > > On Thu, Sep 10, 2020 at 10:51:18PM +0900, Masahiro Yamada wrote: > > The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. > > > > Here is the godbolt: > > https://godbolt.org/z/8T4177 > > > > Signed-off-by: Masahiro Yamada > > For what it's worth, the commit that introduced this block is going to > be reverted: > > https://lore.kernel.org/mm-commits/20200903201518.JKrRS%25akpm@linux-foundation.org/ My bad - you are right. This hunk has already gone by Nick's patch. Thanks. > Regardless, it was introduced in LLVM 2.7.0 in commit > f9d41df0930986c52e198292cf875eb5d1761ece. > > Reviewed-by: Nathan Chancellor > > > --- > > > > Makefile | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/Makefile b/Makefile > > index 059b36f2ea53..1b6abecc5cab 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -927,7 +927,7 @@ KBUILD_CFLAGS += -fno-strict-overflow > > # clang sets -fmerge-all-constants by default as optimization, but this > > # is non-conforming behavior for C and in fact breaks the kernel, so we > > # need to disable it here generally. > > -KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants) > > +KBUILD_CFLAGS += -fno-merge-all-constants > > > > # for gcc -fno-merge-all-constants disables everything, but it is fine > > # to have actual conforming behavior enabled. > > -- > > 2.25.1 > > > > -- > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20200910163311.GB3119896%40ubuntu-n2-xlarge-x86. -- Best Regards Masahiro Yamada