Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1018070imu; Thu, 13 Dec 2018 08:08:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/VVkvaWOup0ECRGyAN1BBkGkDX5tHGX21GUbxFWT4rTqH9O9XspH9UNzXhQMcvON5Yu1aIg X-Received: by 2002:a63:db02:: with SMTP id e2mr22476821pgg.419.1544717305532; Thu, 13 Dec 2018 08:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544717305; cv=none; d=google.com; s=arc-20160816; b=cau3gLU4IKO3nKtiKlkbiYo8HglYyv2ps70b0BRHZWufQAPQgLaO+tU0IL2aGI7tfA wETTwHyGSt3b8AcskfM07/7QCXObYOkjyXGLtrYf79uiZXygKuMq7yNu7JpMjwIwEGhM Or6t9rm9e4e/o/SZ+jxBjadMr9T6tn+6b5lDN1oPKAQduheGxAqkISdXKqMsobb62rx3 3dKDZRtxKUZlJCpyVrUFl/gk90vD/7/96L3qOpMAY4yPW2twnn52H4zHqBh12jVvmDYR tNAkqQBy9ZT/j2lE+Oqae/YtG4eo8iOBzpm59L/MdkNcBsJ9brXwT3O6izZx1kHaKKL8 gMYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=aI6QqJd6HSZRAe6yBw/S9jeNHhg/Q1TjGcIBhdVVaug=; b=CmO1kUaoVWieVawsoaYbHvcrPD8GvRWj94VhdkiZpHIVN2yKQORxg1zoJe9lq81Phr FzKHuqysvGEaXBRKJ4vWopmvNw8NNh5U14IMWEzuBxrWiHySj/dBdGHxYe6//ZmqASKi N+eGjrYaqwstlpPm22T6s3XgnnrYGIjTALS8kxy9sQTZ/F18lc6VMV21BVBzJXJqaVNq Neb/H2NG2ABtFdzDSIeJueQDc3H+y/YxuSQLq4ZaDKFRsTAy49Okr6hUv9Qg9R7gczn1 iZ/8Cv1EGNfy+vSZLYItzekR1op5Ps63k3L/vBYfYUrdGNReVzW85Oe5othaiMxLqoQL siIA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x5si1762554pgq.535.2018.12.13.08.07.55; Thu, 13 Dec 2018 08:08:25 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729317AbeLMQFJ (ORCPT + 99 others); Thu, 13 Dec 2018 11:05:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57552 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728682AbeLMQFJ (ORCPT ); Thu, 13 Dec 2018 11:05:09 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 23C1081DFA; Thu, 13 Dec 2018 16:05:08 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-82.ams2.redhat.com [10.36.116.82]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 211536012B; Thu, 13 Dec 2018 16:05:01 +0000 (UTC) From: Florian Weimer To: Rich Felker Cc: Catalin Marinas , Andy Lutomirski , tg@mirbsd.de, Linus Torvalds , X86 ML , LKML , Linux API , "H. Peter Anvin" , Peter Zijlstra , Borislav Petkov , Mike Frysinger , "H. J. Lu" , x32@buildd.debian.org, Arnd Bergmann , Will Deacon Subject: Re: Can we drop upstream Linux x32 support? References: <20181212165237.GT23599@brightrain.aerifal.cx> <20181213124025.bczxzj6ez34joo6v@localhost> <20181213155744.GU23599@brightrain.aerifal.cx> Date: Thu, 13 Dec 2018 17:04:59 +0100 In-Reply-To: <20181213155744.GU23599@brightrain.aerifal.cx> (Rich Felker's message of "Thu, 13 Dec 2018 10:57:44 -0500") Message-ID: <87o99pl8es.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 13 Dec 2018 16:05:08 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rich Felker: >> If the compiler can handle the zeroing, that would be great, though not >> sure how (some __attribute__((zero)) which generates a type constructor >> for such structure; it kind of departs from what the C language offers). > > The compiler fundamentally can't. At the very least it would require > effective type tracking, which requires shadow memory and is even more > controversial than -fstrict-aliasing (because in a sense it's a > stronger version thereof). It's possible to do it with the right types. See _Bool on 32-bit Darwin PowerPC for an example, which is four bytes instead of the usual one. Similarly, we could have integer types with trap representations. Whether it is a good idea is a different matter, but the amount of compiler magic required is actually limited. Thanks, Florian