From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9705 invoked by alias); 26 Nov 2017 00:11:45 -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 9695 invoked by uid 89); 26 Nov 2017 00:11:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=BAYES_00,KAM_SHORT,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1347, H*f:sk:2mxsExj, H*f:sk:nzPnHsg, H*f:sk:nw@mail X-HELO: ainaz.pair.com Received: from ainaz.pair.com (HELO ainaz.pair.com) (209.68.2.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 26 Nov 2017 00:11:43 +0000 Received: from ainaz.pair.com (localhost [127.0.0.1]) by ainaz.pair.com (Postfix) with ESMTP id 1E6C33F48F; Sat, 25 Nov 2017 19:11:41 -0500 (EST) Received: from anthias (vie-188-118-240-174.dsl.sil.at [188.118.240.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id EC6DD3F444; Sat, 25 Nov 2017 19:11:39 -0500 (EST) Date: Sun, 26 Nov 2017 00:54:00 -0000 From: Gerald Pfeifer To: Marc Glisse , David Malcolm cc: Jason Merrill , Richard Biener , "Joseph S. Myers" , gcc-patches@gcc.gnu.org Subject: Re: [RFTesting] New POINTER_DIFF_EXPR In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1685187974-1511135662=:12314" X-IsSubscribed: yes X-SW-Source: 2017-11/txt/msg02245.txt.bz2 --8323329-1685187974-1511135662=:12314 Content-Type: text/plain; FORMAT=flowed; CHARSET=ISO-8859-7 Content-Transfer-Encoding: 8BIT Content-length: 1362 On Mon, 20 Nov 2017, Marc Glisse wrote: > new version, regtested on powerpc64le-unknown-linux-gnu. The front-end > parts are up for review. > > 2017-10-28 Marc Glisse > > gcc/c/ > * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR. > * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR. > > gcc/c-family/ > * c-pretty-print.c (pp_c_additive_expression, > c_pretty_printer::expression): Handle POINTER_DIFF_EXPR. > > gcc/cp/ > * constexpr.c (cxx_eval_constant_expression, > potential_constant_expression_1): Handle POINTER_DIFF_EXPR. > * cp-gimplify.c (cp_fold): Likewise. > * error.c (dump_expr): Likewise. > * typeck.c (pointer_diff): Use POINTER_DIFF_EXPR. I'm afraid this broke building Wine. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83164 ddeml.c: In function ¡DDEML_AddThunk¢: ddeml.c:181:28: error: type mismatch in pointer diff expression static struct ddeml_thunk* DDEML_AddThunk(DWORD instId, DWORD pfn16) ^~~~~~~~~~~~~~ int struct HDDEDATA__ * (*) (DWORD, UINT, UINT, struct HCONV__ *, struct HSZ__ *, struct HSZ__ *, struct HDDEDATA__ *, ULONG_PTR, ULONG_PTR) DWORD * _6 = WDML_InvokeCallback16 - _5; ddeml.c:181:28: internal compiler error: verify_gimple failed David, in addition to the ICE diagnostics also looks, umm, rather confusing? Gerald --8323329-1685187974-1511135662=:12314--