Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5607203imu; Mon, 26 Nov 2018 02:56:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/XRk1/31e2BVvywxDYDPSQE3VupFwpp68oSzMs3QrPHC3XZ6ZEH9cTqfqnma0E8/Pc2lCpg X-Received: by 2002:a17:902:7603:: with SMTP id k3mr27414663pll.285.1543229764909; Mon, 26 Nov 2018 02:56:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543229764; cv=none; d=google.com; s=arc-20160816; b=xpUxhi81PVZns4vXD2iZBnwRpVt1VvbRrvNbWicATorj7tzHF2g4Pt4VyGYUYcpcKj I3rpKhk5W9fld2hXIs6npMttwslB15cBkt6GwuhFMOlfOTMmNaj9jG7WixUG/bIMnuv0 TmW036sHLzpM0BsnolU9AX/3SGDQIVnE8KXCMGJ7u41kZccC8M4ACpTTpPMaBYnpVOXB IAFHPxGuS+XxVGoo6pxCcniqA5cu6NaUFzHWFB9UnM6KVG/q9wMkv+xr9eBN56csSZoS 9OVjwTsGGRCIe4lnCTnU7u86vRV2zVc72VDU+YC1dYjo/LAZ+9fcGuW2V7q0Hz6ixPWu gqpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KLcAL+YKP74PmY+qKCqyIVllVL9ywutAHVIx6iQ7hjY=; b=s2gm+dIMQOHyBpX86wLhCDa1mgC4///15PJAzbrTiwiSs8XJQFYwT5Zx5dUEAwH6b9 xqoWwiXYY1k6jNsM4Cr8EWVEL8+bhjUJLj5Hu+tpX9QygOqxKhUXBgQMfsh+/aOWsFMI 86wykxU2uCcsTgpRHhFrafY29JAbLUnO5A1indcp9O+KyvKAxe7ViRt8epRh4RKof3Sk o4nuYsbmsKBxSYALYMJx6FMpwdcnnt2/0VENOs3btHRwrsn8ChuMEnqi0dFAD3gu26Je lVvQYvOgHJNL84Zfq6OSPUGw4A+ca8kG3gYx6El5pRcwdFEWMjRnuSoUJTlEaNQmuHbz 2phw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WBtHxccj; 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 s13si30105863pgc.509.2018.11.26.02.55.49; Mon, 26 Nov 2018 02:56:04 -0800 (PST) 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=@kernel.org header.s=default header.b=WBtHxccj; 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 S1727542AbeKZVsV (ORCPT + 99 others); Mon, 26 Nov 2018 16:48:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:56808 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbeKZVsU (ORCPT ); Mon, 26 Nov 2018 16:48:20 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 0E1DA20817; Mon, 26 Nov 2018 10:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229676; bh=WAXTVzzrzvFzWX/E8HE102NNUp5wcdMdFXR+kzRrkgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WBtHxccjmYaSNNDQjlhRuDUxfW7OpPyOVU5/hu/yQ8/+5e5xujEj0Go2Fg9lIaFNl B+iNObDWOMRYEM3xAviveyNMrib/eGUrIOLE1fzeU+dA7VIiPM2sdMGSiUfAB3/FFW CTVtls7a8pLVy9k2YKEllA1z9XxYJ+i/QS7NA0DQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matthias Kaehlcke , Greg Hackmann , Linus Torvalds , Masahiro Yamada , Michael Davidson , Peter Zijlstra , Thomas Gleixner , grundler@chromium.org, Ingo Molnar , Nathan Chancellor Subject: [PATCH 4.4 29/70] x86/kbuild: Use cc-option to enable -falign-{jumps/loops} Date: Mon, 26 Nov 2018 11:50:44 +0100 Message-Id: <20181126105049.588008241@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Matthias Kaehlcke commit 2c4fd1ac3ff167c91272dc43c7bfd2269ef61557 upstream. clang currently does not support these optimizations, only enable them when they are available. Signed-off-by: Matthias Kaehlcke Cc: Greg Hackmann Cc: Linus Torvalds Cc: Masahiro Yamada Cc: Michael Davidson Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: grundler@chromium.org Link: http://lkml.kernel.org/r/20170413172609.118122-1-mka@chromium.org Signed-off-by: Ingo Molnar Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- arch/x86/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -88,10 +88,10 @@ else KBUILD_CFLAGS += -m64 # Align jump targets to 1 byte, not the default 16 bytes: - KBUILD_CFLAGS += -falign-jumps=1 + KBUILD_CFLAGS += $(call cc-option,-falign-jumps=1) # Pack loops tightly as well: - KBUILD_CFLAGS += -falign-loops=1 + KBUILD_CFLAGS += $(call cc-option,-falign-loops=1) # Don't autogenerate traditional x87 instructions KBUILD_CFLAGS += $(call cc-option,-mno-80387)