From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40313 invoked by alias); 8 Oct 2015 10:25:47 -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 40227 invoked by uid 89); 8 Oct 2015 10:25:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-yk0-f177.google.com Received: from mail-yk0-f177.google.com (HELO mail-yk0-f177.google.com) (209.85.160.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 08 Oct 2015 10:25:45 +0000 Received: by ykec126 with SMTP id c126so7088306yke.2 for ; Thu, 08 Oct 2015 03:25:43 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.129.107.197 with SMTP id g188mr4487779ywc.267.1444299943610; Thu, 08 Oct 2015 03:25:43 -0700 (PDT) Received: by 10.37.93.136 with HTTP; Thu, 8 Oct 2015 03:25:43 -0700 (PDT) In-Reply-To: <1444280375-20866-10-git-send-email-rth@redhat.com> References: <1444280375-20866-1-git-send-email-rth@redhat.com> <1444280375-20866-10-git-send-email-rth@redhat.com> Date: Thu, 08 Oct 2015 10:25:00 -0000 Message-ID: Subject: Re: [PATCH 9/9] Fix PR 66768 From: Richard Biener To: Richard Henderson Cc: GCC Patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00816.txt.bz2 On Thu, Oct 8, 2015 at 6:59 AM, 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. For the record, it's obvious. Thanks, Richard. > > * tree-ssa-address.c (create_mem_ref_raw): Retain the correct > type for the address base. > --- > gcc/tree-ssa-address.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c > index 042f9c9..bd10ae7 100644 > --- a/gcc/tree-ssa-address.c > +++ b/gcc/tree-ssa-address.c > @@ -388,7 +388,7 @@ create_mem_ref_raw (tree type, tree alias_ptr_type, struct mem_address *addr, > } > else > { > - base = build_int_cst (ptr_type_node, 0); > + base = build_int_cst (build_pointer_type (type), 0); > index2 = addr->base; > } > > -- > 2.4.3 >