Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp817350img; Mon, 18 Mar 2019 15:09:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwe/uaxD9B1azi/s60rlDdepxkh5RRgFSUzvLskm0ggECXkq4FzzysYWL36k67qaIGmvrKX X-Received: by 2002:a17:902:8ecb:: with SMTP id x11mr21759664plo.40.1552946957851; Mon, 18 Mar 2019 15:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552946957; cv=none; d=google.com; s=arc-20160816; b=sPZg7q0L302lOoUgMYGYJ3ACJrV1ROYw/eC0QWT7xZdAnaSXJqGa3d7Y74gq27KSbL e5+AQSmISu/FP06d2mHzYVQaQJce0Tmvy9cIT71xqu1ehZDudxZ5z61lFQSCg3e/7dHY 82d8qutdwDWfc+kBNwAdc6DSu8ve1UvgnTYLR16McxzMVGF/JMhcp1sbjIA+ygO9gHhk N64TfyJE6utDaM7pkiTAokMJhUaUIF7EKN8JyyPtrblahNKUsfxpybDXVaodo23mdK6T kwLmktCEoysu+0gdyEtos61FEvmTeU31BcwMNb1hz3wBitGShaJOVKQqV+Gqfc7ZS18+ TYmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date; bh=ThMCxMLnZ0spY3Mdv3CZDOhsOOBrxLUarE0TcIijupk=; b=RctRkvGfJyW5SxUHIOM9PPOZFHAAqUtaY8wxrFHa5yuZtjm4ERB9FUpVZEgzCRI3dD OJLeyxiUDQklNStc5fdRSFqmYQrsRJJFcty9McCV9u2honzJVV44DSCZ0IyDlfpU3pDk OElwGEH4ojYE0dyMGt5UbbsBvMmznIiPKUP5OIUxeUHJnjoJJmCtCWzr/NLWSiAyQ2ar h/hTVzRbThcuY+VBzxop/VsXTVrdnwVDOG6xPKnQjv1qholqD7icdBWcCssF4HFpHI4f FYgvIX+X80R8NQBEOxEF3wBUWm5YIyjuC39vb5MH1u1xO4SPm7hhEo/wdv7hjDdIxYyY 10Vw== ARC-Authentication-Results: i=1; mx.google.com; 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 q6si10253143pll.130.2019.03.18.15.09.02; Mon, 18 Mar 2019 15:09:17 -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; 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 S1727514AbfCRWIW convert rfc822-to-8bit (ORCPT + 99 others); Mon, 18 Mar 2019 18:08:22 -0400 Received: from terminus.zytor.com ([198.137.202.136]:37123 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726911AbfCRWIW (ORCPT ); Mon, 18 Mar 2019 18:08:22 -0400 Received: from [IPv6:2607:fb90:8435:e408:e1a9:1fde:6fc9:a6d9] ([IPv6:2607:fb90:8435:e408:e1a9:1fde:6fc9:a6d9]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id x2IM7p8E3152708 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 18 Mar 2019 15:07:52 -0700 Date: Mon, 18 Mar 2019 15:07:47 -0700 User-Agent: K-9 Mail for Android In-Reply-To: <20190318215605.GJ112750@google.com> References: <20190318215605.GJ112750@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Subject: Re: [PATCH] Revert "kbuild: use -Oz instead of -Os when using clang" To: Matthias Kaehlcke , Nick Desaulniers CC: Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , LKML , Behan Webster , Peter Zijlstra , Manoj Gupta , Tiancong Wang , Stephen Hines , clang-built-linux@googlegroups.com From: hpa@zytor.com Message-ID: <0275C6DD-7F77-4D51-9C35-B25ECF61EB0F@zytor.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On March 18, 2019 2:56:05 PM PDT, Matthias Kaehlcke wrote: >On Mon, Mar 18, 2019 at 02:47:13PM -0700, 'Nick Desaulniers' via Clang >Built Linux wrote: >> On Mon, Mar 18, 2019 at 2:10 PM 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. >> >> Does scripts/checkpatch.pl complain about this format (full sha, no >> title)? > >Nope, for reverts checkpatch is happy with it, I suppose because by >default the subject of the reverted patch is part of the revert's >subject. > >> Not sure that necessitates a v2, but if so would be good to >> mention that Clang generates excessive calls into libgcc/compiler-rt >> at -Oz. Thanks for the patch and the discussion/sanity check. > >I can send a v2 if 'needed'. > >> Reviewed-by: Nick Desaulniers > >Thanks! > >Matthias > >> > >> > Suggested-by: Peter Zijlstra >> > Signed-off-by: Matthias Kaehlcke >> > --- >> > 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 >> >> >> Would be nice, still, to have -Ok. -- Sent from my Android device with K-9 Mail. Please excuse my brevity.