From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 50220 invoked by alias); 17 Nov 2017 17:54:00 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 49777 invoked by uid 89); 17 Nov 2017 17:54:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=no version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 17 Nov 2017 17:53:59 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-03.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1eFkpx-0004DT-JW from joseph_myers@mentor.com ; Fri, 17 Nov 2017 09:53:57 -0800 Received: from digraph.polyomino.org.uk (137.202.0.87) by SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 17 Nov 2017 17:53:54 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.86_2) (envelope-from ) id 1eFkpt-00014F-Gb; Fri, 17 Nov 2017 17:53:53 +0000 Date: Fri, 17 Nov 2017 18:05:00 -0000 From: Joseph Myers To: DJ Delorie CC: Richard Biener , , , , , , Subject: Re: [RFTesting] New POINTER_DIFF_EXPR In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) X-SW-Source: 2017-11/txt/msg01528.txt.bz2 On Fri, 17 Nov 2017, DJ Delorie wrote: > Richard Biener writes: > > The question is what ptrdiff_t is for a specific address space. Or > > rather if that type may be dependent on the address space or if we can > > always use that of the default address space. > > Some targets have a "far" address space that's bigger than the default. > rl78 for example has a 16-bit default pointer and a 32-bit far pointer. Well, that's outside the scope of how TR 18037 defines the address space feature, if ptrdiff_t is 16-bit. But it should still have nothing to do with this patch as long as the patch keeps the result of the subtraction having the same type it does at present. -- Joseph S. Myers joseph@codesourcery.com