From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70341 invoked by alias); 8 Oct 2015 09:55:06 -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 70327 invoked by uid 89); 8 Oct 2015 09:55:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 08 Oct 2015 09:55:04 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 5400B8E718; Thu, 8 Oct 2015 09:55:03 +0000 (UTC) Received: from localhost.localdomain (vpn1-4-126.ams2.redhat.com [10.36.4.126]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t989t1af014813; Thu, 8 Oct 2015 05:55:02 -0400 Subject: Re: [PATCH 9/9] Fix PR 66768 To: "Bin.Cheng" , Richard Henderson References: <1444280375-20866-1-git-send-email-rth@redhat.com> <1444280375-20866-10-git-send-email-rth@redhat.com> Cc: gcc-patches List From: Bernd Schmidt Message-ID: <56163D75.4080805@redhat.com> Date: Thu, 08 Oct 2015 09:55:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00807.txt.bz2 On 10/08/2015 07:17 AM, Bin.Cheng wrote: > On Thu, Oct 8, 2015 at 12:59 PM, Richard Henderson wrote: >> This is the patch that richi includes in the PR. There will need to >> be an additional patch to solve an ICE for the AVR backend, as noted >> in the PR, but this is good enough to solve the bad-code generation >> problem for the i386 backend. > Hi Richard, > For the record, the root cause is in IVO because it fails to preserve > base object. This patch can only paper over the issue for address > spaces where PTR type and sizetype have the same length, otherwise IVO > generates wrong code which can't be walked around by this patch. I > will take PR66768. Hmm. In 2012 I submitted a patch "Preserve pointer types in ivopts", which got lost in review. It was for a different problem than address spaces, but it might be worth taking a look whether that approach could help solve this issue. Bernd