Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp182347pxu; Tue, 1 Dec 2020 08:47:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMTTmVj47iw0lkQ3wTH18XoQHkVmhaVgs/dd+U6ZArDsp6m1nQlqj7Tr2cei8ChP8uU3Gi X-Received: by 2002:a50:9e29:: with SMTP id z38mr4003243ede.220.1606841244743; Tue, 01 Dec 2020 08:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606841244; cv=none; d=google.com; s=arc-20160816; b=BmUWLyXFIls260wGJIarGOFzO/pngEbkYAw5aEIiCYWBlIUJXxq9GAIl8pE+55a6i8 8zlDqZ0UFDSAyVkxtkdUX4OBDhGydGSimdfb+DbrrNS2QZWIFYBeWxxqVH/47ukv3qlM H5rsp/DNbKRt4m5zmmw5VVHsyYj9+cZukpoy4OnJ5jJ9zXOHjgBNDEBJG9SUbC1eQMlA WEfTAohqHLJ1CJBmiucbegB9qPj9G8kgo8hymotdw1jAS5j+rwSXIERpV7NWvIR8oFJQ V7bc55AG63J1tqlLL2rHxemum4YJlaNuaUFzPmyUuTtkH5wuWI9/PXiaq56JjQIokY6x uYiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=btGQfODE28DUIErTFVGy4pmvPQAjXfts3GLmmIUzGq0=; b=difDdXcwjHs/sERt8Y/CjsnyoCz91SFKa7DEJ9OE4nxmxnZL3fnCKSaZ36roXcMmIM nQWWomtzr5Na5xbZiB53Iwumrb9OAk/JL4U0Ui3CPSvSSfszPn8Wcj0C2VeIQ9TwilYi HRtRIdUlRaYuSn9QoORw7dWr3XYEdruqPfX5CWPx27KDkk+KYrvOUiWlHmIXwnPL8IkN A3JNDLr2tAMXKj4JBd+IKKRDel6KC5q6AeATh6h9OHMf80eJqcyP+rLvA5g7mNF8qfEU apcTK+wLQ9L6n34c1JhlixScupwhbDN2FJEEsnj+z8GWn5Va6Unu7z4qX3EUJiyX6ULR R+ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PlyeYe3u; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si320007ejc.47.2020.12.01.08.47.01; Tue, 01 Dec 2020 08:47:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PlyeYe3u; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727914AbgLAQoX (ORCPT + 99 others); Tue, 1 Dec 2020 11:44:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726485AbgLAQoX (ORCPT ); Tue, 1 Dec 2020 11:44:23 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB1A1C0613D6; Tue, 1 Dec 2020 08:43:42 -0800 (PST) Date: Tue, 01 Dec 2020 16:43:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606841020; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=btGQfODE28DUIErTFVGy4pmvPQAjXfts3GLmmIUzGq0=; b=PlyeYe3uRqRGqZ0ZX6PrTrmeNhcvjyrsIvUqo0An6kwIGtPRQ44qU5MOTNHdlH27OU2Z8p /ux4fScCtC+Z8aW3B0W4k3DuRtxVQjttgch/xktpO8pnrKh1rh85UxPffecaP+RgnGbouk BddHiOg4JK30XcUv+6/+nom3AVCMPvIC4I8JhMb831mmKPY5S02PoaCT7AVrMk5pYWeVHi AhgSTj+NbQUWpKZ4ECnUWWICCWrjOF1pfGyXcq8UMcFQfIth+WEkNV1yvu+hz9GjdahR+M 4KS7zMWvgi88dlGKBjV4J7VV71JegApqdAnEZxUpM1WjRgyDg4d8mlrPXQb1DA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606841020; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=btGQfODE28DUIErTFVGy4pmvPQAjXfts3GLmmIUzGq0=; b=cUfEDpYuubBUEqRLeIblDCKZkFZsDvBvdyntEOxCgQz3LZjsqeXm98d8SgiowTM8fbPv8S 5JbzpMsKGqXM3rBQ== From: "tip-bot2 for Nick Desaulniers" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/build] x86/build: Remove -m16 workaround for unsupported versions of GCC Cc: Nick Desaulniers , Borislav Petkov , Nathan Chancellor , David Woodhouse , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20201201011307.3676986-1-ndesaulniers@google.com> References: <20201201011307.3676986-1-ndesaulniers@google.com> MIME-Version: 1.0 Message-ID: <160684101976.3364.7563855323822414041.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/build branch of tip: Commit-ID: 2838307b019dfec0c309c4e8e589658736cff4c9 Gitweb: https://git.kernel.org/tip/2838307b019dfec0c309c4e8e589658736cff4c9 Author: Nick Desaulniers AuthorDate: Mon, 30 Nov 2020 17:13:06 -08:00 Committer: Borislav Petkov CommitterDate: Tue, 01 Dec 2020 17:17:18 +01:00 x86/build: Remove -m16 workaround for unsupported versions of GCC Revert the following two commits: de3accdaec88 ("x86, build: Build 16-bit code with -m16 where possible") a9cfccee6604 ("x86, build: Change code16gcc.h from a C header to an assembly header") Since 0bddd227f3dc ("Documentation: update for gcc 4.9 requirement") the minimum supported version of GCC is gcc-4.9. It's now safe to remove this code. Signed-off-by: Nick Desaulniers Signed-off-by: Borislav Petkov Reviewed-by: Nathan Chancellor Reviewed-by: David Woodhouse Link: https://lkml.kernel.org/r/20201201011307.3676986-1-ndesaulniers@google.com --- arch/x86/Makefile | 9 +-------- arch/x86/boot/code16gcc.h | 12 ------------ 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 arch/x86/boot/code16gcc.h diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 154259f..b891066 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -24,14 +24,7 @@ endif # How to compile the 16-bit code. Note we always compile for -march=i386; # that way we can complain to the user if the CPU is insufficient. -# -# The -m16 option is supported by GCC >= 4.9 and clang >= 3.5. For -# older versions of GCC, include an *assembly* header to make sure that -# gcc doesn't play any games behind our back. -CODE16GCC_CFLAGS := -m32 -Wa,$(srctree)/arch/x86/boot/code16gcc.h -M16_CFLAGS := $(call cc-option, -m16, $(CODE16GCC_CFLAGS)) - -REALMODE_CFLAGS := $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \ +REALMODE_CFLAGS := -m16 -g -Os -DDISABLE_BRANCH_PROFILING \ -Wall -Wstrict-prototypes -march=i386 -mregparm=3 \ -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ -mno-mmx -mno-sse diff --git a/arch/x86/boot/code16gcc.h b/arch/x86/boot/code16gcc.h deleted file mode 100644 index e19fd75..0000000 --- a/arch/x86/boot/code16gcc.h +++ /dev/null @@ -1,12 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -# -# code16gcc.h -# -# This file is added to the assembler via -Wa when compiling 16-bit C code. -# This is done this way instead via asm() to make sure gcc does not reorder -# things around us. -# -# gcc 4.9+ has a real -m16 option so we can drop this hack long term. -# - - .code16gcc