Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp565487img; Wed, 20 Mar 2019 06:31:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqy/UcvVNn86CL7kkryKXjXrnRto0hCyh81X4cF5M03e2JyPyBJxSfq8xR86gs5elPVNEjd4 X-Received: by 2002:a62:1e82:: with SMTP id e124mr7693094pfe.258.1553088704824; Wed, 20 Mar 2019 06:31:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553088704; cv=none; d=google.com; s=arc-20160816; b=gTQvDHzznAdV9ZT64p4uzqVEycc0U6ilnQAaoU0E/mmPFnUrPky7a7Dl+ha7k4CzRw wRHfhpOIGTIPm07UGzQoNHDgakKJVNrBbogE1xfdlf3O6O1rcOg5tEaOAaNELdxQ4IlI 7+q//M4ZeYRBMoJ4TSTASzkkLEIwdA8xLXPxBa2g8mH+fKmwoTEG9nr2sVVdlB8I1K6B 7Mlv0pju2th17Fyug7cVweLoPnhnaWtRla3M8CahU1BIkae7LJN9ArblLqk7uledWPhi NLez1RG1Tq0jMkcItXzpiFDOqTivBU3lrmErC+xxpU67vfufUSwStLIlwQRfx6TUEevS Vg5g== 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=J3I0WRysBKxZTanhBUXEyZbaQHMnn1tkHS81meSjYfA=; b=Uog7TA7RpFYxMyLuBBIRO3EGdI4MmqVt2Zo5LxQbX9LY4mFdnyczKzezIZfxYLXMVU SyVb6Vtkbxq5JlAzeZ2U7bfR+VuCt/eENMNn6Ic/J/b0ZwYApJRpM8M2IpuamrpqnV5X HT6Roz1UHz1nfMLwj1tn2gn2z7JcUee9T+4J4WS96SyTxWznmw9EMGFhbCxoa8VTSAPg QQ0uNHtr/p3i9kSQFsVyp+uEsLfvn5X8WNFzYJo6TbB9kw9J9Pp68Sc9BDRVVamHsXWd 8EB3beWOSZucfBWhNq8e+YpV32poNbiS4gLDW1My9MNe+W8uuD8Ww5kq91xT+tvQVBJX Lh3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=mFtDMmFO; 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 r11si1807189plo.400.2019.03.20.06.31.28; Wed, 20 Mar 2019 06:31:44 -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=mFtDMmFO; 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 S1727755AbfCTN3h (ORCPT + 99 others); Wed, 20 Mar 2019 09:29:37 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:42104 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfCTN3e (ORCPT ); Wed, 20 Mar 2019 09:29:34 -0400 Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x2KDTJHu029375; Wed, 20 Mar 2019 22:29:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x2KDTJHu029375 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1553088560; bh=J3I0WRysBKxZTanhBUXEyZbaQHMnn1tkHS81meSjYfA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=mFtDMmFOERz3kLq4QsYxXpOJiDrEatzJOu4Y8j6VaI9UKsteLMDGmwy5RvZZfXzPv fDNnCfkvDschdeWpGO6OikoJWTvEIRo+GPi9EnJZvOx+TUg2cQCcEths7AO8xwqCpB Q5fWGsi4x0d+s7ZIdFAElyXVv0dpDOnvEH3nYiQcN1dVlv8p5foRi4G4HTH/25MhQ4 XzAWxndV1MzXoUqAwoeTUr5LTvhuU/L/RYNvZFjCrLn5PlvPE/0SRRh5iknbVLfeqY 3nh9QFloW8lo6M8pX8/2qR3Gtw4wrzz3Fe3lyN2tqluHRzhgrzWa6UZO4+zXMVobdE lwRmDFF/3Rn5g== X-Nifty-SrcIP: [209.85.217.48] Received: by mail-vs1-f48.google.com with SMTP id w13so1467500vsc.4; Wed, 20 Mar 2019 06:29:20 -0700 (PDT) X-Gm-Message-State: APjAAAWmp1uStq5/dvfCRMtdRNwqE1GZ/7IkHkF4AIPclbEgWKB8IGCF UJmJIHkLvqY7kZhsfh3UTz5TLvyVLS/RipTMzdg= X-Received: by 2002:a67:f105:: with SMTP id n5mr4963786vsk.181.1553088559207; Wed, 20 Mar 2019 06:29:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Masahiro Yamada Date: Wed, 20 Mar 2019 22:28:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "kbuild: use -Oz instead of -Os when using clang" To: Matthias Kaehlcke Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , Behan Webster , Peter Zijlstra , "H . Peter Anvin" , Nick Desaulniers , Manoj Gupta , Tiancong Wang , Stephen Hines , clang-built-linux@googlegroups.com 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 Tue, Mar 19, 2019 at 6:10 AM Matthias Kaehlcke wrote: > > The clang option -Oz enables *aggressive* optimization for size, > which doesn't necessarily result in smaller images, but can have > negative impact on performance. Switch back to the less aggressive > -Os. > > This reverts commit 6748cb3c299de1ffbe56733647b01dbcc398c419. > > Suggested-by: Peter Zijlstra > Signed-off-by: Matthias Kaehlcke Applied to linux-kbuild/fixes. Thanks. > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 9ef547fc7ffe..191f3ce3cb5e 100644 > --- a/Makefile > +++ b/Makefile > @@ -667,7 +667,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow) > KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context) > > ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE > -KBUILD_CFLAGS += $(call cc-option,-Oz,-Os) > +KBUILD_CFLAGS += -Os > else > KBUILD_CFLAGS += -O2 > endif > -- > 2.21.0.225.g810b269d1ac-goog -- Best Regards Masahiro Yamada