From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F13A1C10F11 for ; Wed, 24 Apr 2019 17:25:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C192A206BA for ; Wed, 24 Apr 2019 17:25:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556126730; bh=1YfsndYXaRedG/p14BKTayBI2hNnHsLN1b8ugKgTArk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=0kq0e3GX+IDfMX4HjG/6Y2Ew1TjqPhR7AWY2BB1l2lH+iCFfFL1tbslxtKaLmtw9I iZ81E4mivv+BHk6fZGbhojeXz4457fnQKyh9OYcBProiISBgk2oMRG/HKBwr/RLRnO ILIHsvR1l0GAwQfz1ijvf2ioQ54U5LmGY9Xwb6TM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390045AbfDXRZ3 (ORCPT ); Wed, 24 Apr 2019 13:25:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:51368 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390032AbfDXRZ0 (ORCPT ); Wed, 24 Apr 2019 13:25:26 -0400 Received: from localhost (62-193-50-229.as16211.net [62.193.50.229]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 502D2206BA; Wed, 24 Apr 2019 17:25:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556126725; bh=1YfsndYXaRedG/p14BKTayBI2hNnHsLN1b8ugKgTArk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WRtbxXla1ukVxDNcKPkctVkBXQgVHVbl5Fz1aY2MLdZGr2uwXpPT5NY45dywon86c zaEdn1N6ncnNYviZECNy6QBrbIJrPTwPheDw6BwW3BtGBeFTPoTJHONaezsRPvFsg7 0NRNeQ1o723YbQmntiAje7uVv+bMtMTgdk6IBP+w= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Zijlstra , Matthias Kaehlcke , Nick Desaulniers , Masahiro Yamada , Nathan Chancellor , Sasha Levin Subject: [PATCH 4.9 38/44] Revert "kbuild: use -Oz instead of -Os when using clang" Date: Wed, 24 Apr 2019 19:10:16 +0200 Message-Id: <20190424170900.914432772@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190424170839.924291114@linuxfoundation.org> References: <20190424170839.924291114@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org commit a75bb4eb9e565b9f5115e2e8c07377ce32cbe69a upstream. 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 Reviewed-by: Nick Desaulniers Signed-off-by: Masahiro Yamada Signed-off-by: Nathan Chancellor Signed-off-by: Sasha Levin --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 966069dab768..994e52be8685 100644 --- a/Makefile +++ b/Makefile @@ -655,8 +655,7 @@ KBUILD_CFLAGS += $(call cc-option,-fdata-sections,) endif ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE -KBUILD_CFLAGS += $(call cc-option,-Oz,-Os) -KBUILD_CFLAGS += $(call cc-disable-warning,maybe-uninitialized,) +KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) else ifdef CONFIG_PROFILE_ALL_BRANCHES KBUILD_CFLAGS += -O2 $(call cc-disable-warning,maybe-uninitialized,) -- 2.19.1