Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp620379pxu; Tue, 1 Dec 2020 21:59:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwI/ZGA5xURThnkRIJeE9D9Dvmx0IyZDbF2KCPtfsF90wgKdbYTtIteSd9mLgx59ibUkEW+ X-Received: by 2002:a17:906:fa13:: with SMTP id lo19mr775350ejb.455.1606888765720; Tue, 01 Dec 2020 21:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606888765; cv=none; d=google.com; s=arc-20160816; b=K8+t5x8lqFj2DMs9hDWABV+jci6fSzo6IxzY74l5/w6iTDcislPY+Bl9uZVMxo+Vp0 gVcY00FfymDJOeD366YyT8OcodrZ07Kmaw87XoWLNhJfHAMdPdqN+3nFFqGX6nOTrhz+ o/T5kdOwIMfFs+KCubJbHWaqr9BJ6yPD2XwmFvah1MlCYYEnifs6a9tI8dAKO2Yo8idB ajaITMks12t3/Ia3zfLWP3hXq5M7TtslDgH2G8DLXlmRic47rJTZlYoKT7agiTdC+hTM 9hxiw2yxWT2hNmnvXgarYfj4a5MzxZkR92nfPrczP1iOFHaX7qVRPBOz3VCkD5CJtTIz axFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature:dkim-filter; bh=lZoblTuZ444n2VQoIdUJL4/MfqKhqZBv8uTRQf1VZY4=; b=fQsfS2ghfUPLVEUjzM8LXv1YgzcXLMKT+xdOfwSv1B18LqRuelBOl6zZaiUcVcaaWX 0+7zAhXCaMVYCX9NJJoCsFrAMgqnI3ImF+QeLt7DC/WOHxVcj5MzRUL7YQ3JQ/fyjqFl u0nnJosKaxEl5LDQGYGuh4dIcNuDNgntKr0qOvDEdkz2Eu04sIvSGVUDywjWyOKMQPI1 RSIXMzR3C0AT18DV1WYwsuHCiIsIr0sAW499KrfW3jDRZEgjxaz0f5xbMqIpmCe7gMVM UQfXs2LKIfqaq75BSnFccu6v3/W+cY8bClHOyN7Q3qyMENVXCV+K7MPu6+uDbzNswi6k Zr9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@zytor.com header.s=2020112401 header.b="XND2Rhi/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si479639edp.346.2020.12.01.21.59.02; Tue, 01 Dec 2020 21:59:25 -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=fail header.i=@zytor.com header.s=2020112401 header.b="XND2Rhi/"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=zytor.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728407AbgLBF5a (ORCPT + 99 others); Wed, 2 Dec 2020 00:57:30 -0500 Received: from terminus.zytor.com ([198.137.202.136]:34407 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725979AbgLBF5a (ORCPT ); Wed, 2 Dec 2020 00:57:30 -0500 X-Greylist: delayed 396 seconds by postgrey-1.27 at vger.kernel.org; Wed, 02 Dec 2020 00:57:30 EST Received: from [IPv6:2601:646:8680:a581:c193:6030:78e:4f19] ([IPv6:2601:646:8680:a581:c193:6030:78e:4f19]) (authenticated bits=0) by mail.zytor.com (8.15.2/8.15.2) with ESMTPSA id 0B25nN3V155135 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 1 Dec 2020 21:49:25 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 0B25nN3V155135 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2020112401; t=1606888166; bh=lZoblTuZ444n2VQoIdUJL4/MfqKhqZBv8uTRQf1VZY4=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=XND2Rhi/utuc5YnXZUnHFKLdV6vb8JXm6AWHHdCTsA8laaJzGEI7T8Lewd10hK03L /KxJc5u+zVu39wb73d9if8kXn9sYEzqDFdB+mY3GizF9mzy3ZlqyWWb8fdFJZcUSWy BH+A7E0dSBXux8GsqSc8OYttWzD6sssQcReZqgjZrvvE8WjV51GJgW17tliE2ADO3V rBwN7ldujS2cKofXyA2ozrcKgYPH2TY2RNnCr7R48HZ8i+aJr4eVk7xQ3WPXChDACc JJivUgsMsm1ow4qPnzNNdf9Z45s2YMTOh8Ye42/QeUHdTmdEocLb7dRhgtnI2geMjN lO+AerWfBD4YA== Date: Tue, 01 Dec 2020 21:49:15 -0800 User-Agent: K-9 Mail for Android In-Reply-To: <20201201011307.3676986-1-ndesaulniers@google.com> References: <20201201011307.3676986-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] x86, build: remove -m16 workaround for unsupported versions of GCC To: Nick Desaulniers , Thomas Gleixner , Ingo Molnar , Borislav Petkov CC: David Woodhouse , x86@kernel.org, Nathan Chancellor , linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com From: hpa@zytor.com Message-ID: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On November 30, 2020 5:13:06 PM PST, Nick Desaulniers wrote: >A revert of the following two commits=2E >commit de3accdaec88 ("x86, build: Build 16-bit code with -m16 where >possible") >commit a9cfccee6604 ("x86, build: Change code16gcc=2Eh from a C header to >an assembly header") > >Since commit 0bddd227f3dc ("Documentation: update for gcc 4=2E9 >requirement") the minimum supported version of GCC is gcc-4=2E9=2E It's >now >safe to remove this code=2E > >Signed-off-by: Nick Desaulniers >--- > arch/x86/Makefile | 9 +-------- > arch/x86/boot/code16gcc=2Eh | 12 ------------ > 2 files changed, 1 insertion(+), 20 deletions(-) > delete mode 100644 arch/x86/boot/code16gcc=2Eh > >diff --git a/arch/x86/Makefile b/arch/x86/Makefile >index 1bf21746f4ce=2E=2E7116da3980be 100644 >--- a/arch/x86/Makefile >+++ b/arch/x86/Makefile >@@ -24,14 +24,7 @@ endif >=20 ># How to compile the 16-bit code=2E Note we always compile for >-march=3Di386; > # that way we can complain to the user if the CPU is insufficient=2E >-# >-# The -m16 option is supported by GCC >=3D 4=2E9 and clang >=3D 3=2E5=2E= For >-# older versions of GCC, include an *assembly* header to make sure >that >-# gcc doesn't play any games behind our back=2E >-CODE16GCC_CFLAGS :=3D -m32 -Wa,$(srctree)/arch/x86/boot/code16gcc=2Eh >-M16_CFLAGS :=3D $(call cc-option, -m16, $(CODE16GCC_CFLAGS)) >- >-REALMODE_CFLAGS :=3D $(M16_CFLAGS) -g -Os -DDISABLE_BRANCH_PROFILING \ >+REALMODE_CFLAGS :=3D -m16 -g -Os -DDISABLE_BRANCH_PROFILING \ > -Wall -Wstrict-prototypes -march=3Di386 -mregparm=3D3 \ > -fno-strict-aliasing -fomit-frame-pointer -fno-pic \ > -mno-mmx -mno-sse >diff --git a/arch/x86/boot/code16gcc=2Eh b/arch/x86/boot/code16gcc=2Eh >deleted file mode 100644 >index e19fd7536307=2E=2E000000000000 >--- a/arch/x86/boot/code16gcc=2Eh >+++ /dev/null >@@ -1,12 +0,0 @@ >-/* SPDX-License-Identifier: GPL-2=2E0 */ >-# >-# code16gcc=2Eh >-# >-# This file is added to the assembler via -Wa when compiling 16-bit C >code=2E >-# This is done this way instead via asm() to make sure gcc does not >reorder >-# things around us=2E >-# >-# gcc 4=2E9+ has a real -m16 option so we can drop this hack long term= =2E >-# >- >- =2Ecode16gcc With enthusiasm: Acked-by: H=2E Peter Anvin --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E