From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7682 invoked by alias); 28 May 2008 00:04:49 -0000 Received: (qmail 7674 invoked by uid 22791); 28 May 2008 00:04:49 -0000 X-Spam-Check-By: sourceware.org Received: from imo-d06.mx.aol.com (HELO imo-d06.mx.aol.com) (205.188.157.38) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 May 2008 00:04:13 +0000 Received: from hutchinsonandy@aim.com by imo-d06.mx.aol.com (mail_out_v38_r9.4.) id r.d17.2a3b0ede (57875); Tue, 27 May 2008 20:04:06 -0400 (EDT) Received: from [192.168.1.110] (ip24-254-236-21.hr.hr.cox.net [24.254.236.21]) by air-ia03.mail.aol.com (v121.5) with ESMTP id MAILINIA31-e213483ca1713b2; Tue, 27 May 2008 20:04:01 -0400 Message-ID: <483CA17D.5040908@aim.com> Date: Wed, 28 May 2008 00:04:00 -0000 From: Andy H User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: GCC Development , rdsandiford@googlemail.com CC: Andy H Subject: Re: Help with reload and naked constant sum causing ICE References: <483AD976.8020108@aim.com> <87wslf2x24.fsf@firetop.home> In-Reply-To: <87wslf2x24.fsf@firetop.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AOL-IP: 24.254.236.21 X-Mailer: Unknown (No Version) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2008-05/txt/msg00401.txt.bz2 > If L_R_A does nothing with it, > the normal reload handling will first try: > > (const:HI (plus:HI (symbol_ref:HI ("chk_fail_buf") (const_int 2)))) > This worked just as your described after I added test of reg_equiv_constant[] inside L_R_A . So I guess that looks like the fix for bug I posted. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34641 To summarize LEGITIMIZE_RELOAD_ADDRESS should now always check reg_equiv_constant before it trying to do any push_reload of register. Thanks for help!