Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp791948img; Mon, 18 Mar 2019 14:26:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAVFk6x6Lwzjz94qoQryzu+j+A16sG7Wa9YGKIl1+wMbVMMEdz8DZGBUgN6ioEIqcSy6pI X-Received: by 2002:a63:2b82:: with SMTP id r124mr19572087pgr.214.1552944362602; Mon, 18 Mar 2019 14:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552944362; cv=none; d=google.com; s=arc-20160816; b=Obs2m7r7uYdRn4NFglytVs9rx7EXLfH0vzNuC4pXGPs6bnT0vfO1dBvQTf0uPu/9pI P5mneqNWyaEkTdG9ULONcuXi8sXCIu6hZMd/UnE9Zy8/LSrnRsrY1TLsYBPLEFMpJBld i/o/zVkL//AeQclAOQXW34sXdIAu0tILRQpp6TZNWgZk2+YyLJeO5OBZrGII/AJ192BN 8x3DfBeYB0A2lqlRiiyXY4TMGHMpAggqeGz4IC2LhsCFz5zsuGvjFlnagqvpA7N+kSLp k8W09BnH7EgqyIGqavcXbqZGJOjS+cXHBDfI3ohQhh2mq79OV27ctbKLbm4eDRm5yu6j rRDw== 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 :mime-version:from:dkim-signature; bh=1OBzRxbq45MhxmYJZgYt4Mvsa34RcIxjDNusHwtkkv0=; b=Vy0LILh6aJFEDRXEcVc5Y9wJUmvYW8UPtdNNClem0zouehCfjcbvV6YTCJBC1EJb/v fykDZieG9BwJBj9aI54RW2i+Da2YrbObMt3qKgl9oahYy6OtptUoyOSKiD/eR+k8aJDp mJAQk4Mjm2wi/+jPNMYfcUWc+UIPZtf0eCW7Am82kZv65zvPrOwJ07QkkvcV6Zj2WX4V ECXNb7+L3piOsGed9a4hr6WJ9GIBHwXipdyIm/Z/1oCCE8hKZTnwHZzetZOgCBsjFME9 A/GQ4qkFJV5FVY6QXfXiY2cB+iKO3r/bjDOLhBjEOtzMVXiIXMM10+xdqHGE+SZAQIE+ ARIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gcUsFJxT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si9392456pgq.214.2019.03.18.14.25.46; Mon, 18 Mar 2019 14:26:02 -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=@chromium.org header.s=google header.b=gcUsFJxT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbfCRVKH (ORCPT + 99 others); Mon, 18 Mar 2019 17:10:07 -0400 Received: from mail-yw1-f66.google.com ([209.85.161.66]:40426 "EHLO mail-yw1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbfCRVKG (ORCPT ); Mon, 18 Mar 2019 17:10:06 -0400 Received: by mail-yw1-f66.google.com with SMTP id p64so10834039ywg.7 for ; Mon, 18 Mar 2019 14:10:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:mime-version:date:message-id:subject:to:cc; bh=1OBzRxbq45MhxmYJZgYt4Mvsa34RcIxjDNusHwtkkv0=; b=gcUsFJxTSM1wKN21LmYugvJKSXvsGO5kOXoF8UyH9gG9jiVeZvgktr5r0B0xuI8pvf SMUxPMiZGYVFYZ48uLsUMb92HLyvrTFy+XxwfCeJLqPPeAlKP7A58vaMgYjQW7ccQKBr 5oamPVbuWwgmWJo9sap5tdjsQKQFHABCSR9Z0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to:cc; bh=1OBzRxbq45MhxmYJZgYt4Mvsa34RcIxjDNusHwtkkv0=; b=ElbEGYi6EQIbvY6fGvl+SI2rZdL0vq/Kf6jRKdILyI0zajthf/u2nxX41jls6vJ/zl e2vO5ReO0dsn2fN7gTRx3kMlsNdWfuaJQUQ1cH2ROJ4n23VFTABb3RKe7kfJhSyNzvZv rWryqIyMs2/AzhKK1mIdr8Ru3LER2L+fMl/rvOmn2rtf850y19JZAXhMF88g3Vfp7CYB +Hf8mA/6OCQK5J/yeWwV05LXOeF272oAzxlRei8ooH/Ms5GF4r35Uz/RyhmNVJ2BstUK Uz2mWUKMpvqw7KTMCkfapSkAc6b0z8zb0yQCGWX2piPWxQx1zXOPwfqdwgDluxD4NuMe A5fg== X-Gm-Message-State: APjAAAUxobhgHAQYWQwQ7ZeJ4c7Al/dzx5jlEMs5dGQrp7SvdOpFxeym erV9aa/+kqjL8iSeOrR+zie6YErfwKwOipcyJG3wQwMC X-Received: by 2002:a81:32c3:: with SMTP id y186mr15873975ywy.144.1552943406087; Mon, 18 Mar 2019 14:10:06 -0700 (PDT) Received: from 764776645087 named unknown by gmailapi.google.com with HTTPREST; Mon, 18 Mar 2019 17:10:05 -0400 From: Matthias Kaehlcke X-Mailer: git-send-email 2.21.0.225.g810b269d1ac-goog MIME-Version: 1.0 Date: Mon, 18 Mar 2019 17:10:05 -0400 Message-ID: Subject: [PATCH] Revert "kbuild: use -Oz instead of -Os when using clang" To: Masahiro Yamada , Michal Marek Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Behan Webster , Peter Zijlstra , "H . Peter Anvin" , Nick Desaulniers , Manoj Gupta , Tiancong Wang , Stephen Hines , clang-built-linux@googlegroups.com, Matthias Kaehlcke 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 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 --- 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