Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1044754imu; Thu, 13 Dec 2018 08:31:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/WfzL41mV3h+CeZOj9GwuqN0IolptvPSEmf3pnphOhIYfxmKg9K9ke0t4SfEFujn+5WDk/5 X-Received: by 2002:a62:d74d:: with SMTP id v13mr24204612pfl.34.1544718665427; Thu, 13 Dec 2018 08:31:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544718665; cv=none; d=google.com; s=arc-20160816; b=bADme/X04CpioWBe4VSTA/h9Lah5BjnQ2SbK/LtUzcLrgrF6hhyDAw+NjqKBRKFzpJ qW7FnLFSNr7nbJ+vNF3E6kZ4w0Uh2iJ0GzzB8JjjL2vyHgR/lLSDW2kpey5M8djvtR8z Bqii6eFkBUzEgwwexELf4L7KVOqtQHdMNoR2ilugPhQ+auZuestJY9ZhO3OySyLB62r3 F8v+I6dIJRosLMvsGcacsQwgqFgaQIZhPe4Mhtn501RBTboE2ElmFzSL6zOKZ4bb8Bbb fupxIJvr2NNwBPHqd+HqeuZImaXe2dwnslVbH1xQ9rGQuF6PuAQx+bDOZjD7uJgH76ef NJaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xVEDfts/WoZKnh/vSp2r4LAsiKhygVLOuJUWyDA1i1Q=; b=rMjKN1e1zyoylmIZnMBZQ/jh1cWL1P/PUkxgJ/w7jPSXAA+YruRcuw/NScyJyx9DMN yE7kGMhjuqkh7GBCpFO7fJ2bIayvO46EVQCFTHA7Ka4/byonDMwslBXkKLZSrNNT/G3u 3z3GRoupEbCFQ5ieFx8yu96mtSxB12JU9+15dl/tw9J3aT8A0sVvXJopdWCmDh4me5b3 j8nJt/PdvIwj5dNJlOhjOtDLtqIxtgkT/cZqz7KGK1xEtdc0LOXLdqamFmBhSxbGA2jz TuXQMsl251iD8vLZ9ayKjBMLjRJwBW/3StbAXpAUY/mrcWsnYA3zDj37tKtb6TkNXbzm Rm8g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j21si1606814pll.150.2018.12.13.08.30.40; Thu, 13 Dec 2018 08:31:05 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729453AbeLMQ2h (ORCPT + 99 others); Thu, 13 Dec 2018 11:28:37 -0500 Received: from 216-12-86-13.cv.mvl.ntelos.net ([216.12.86.13]:58968 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728059AbeLMQ2h (ORCPT ); Thu, 13 Dec 2018 11:28:37 -0500 Received: from dalias by brightrain.aerifal.cx with local (Exim 3.15 #2) id 1gXTqe-0008OS-00; Thu, 13 Dec 2018 16:28:28 +0000 Date: Thu, 13 Dec 2018 11:28:28 -0500 From: Rich Felker To: Florian Weimer 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? Message-ID: <20181213162828.GW23599@brightrain.aerifal.cx> References: <20181212165237.GT23599@brightrain.aerifal.cx> <20181213124025.bczxzj6ez34joo6v@localhost> <20181213155744.GU23599@brightrain.aerifal.cx> <87o99pl8es.fsf@oldenburg2.str.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87o99pl8es.fsf@oldenburg2.str.redhat.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 13, 2018 at 05:04:59PM +0100, Florian Weimer wrote: > * 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. If you do this you just have LP64 with value range restricted to 32-bit. This does not accomplish anything useful since it uses just as much memory as normal LP64 but you don't get anything beneficial out of it. Rich