From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10418 invoked by alias); 28 Jan 2002 19:07:35 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 10356 invoked from network); 28 Jan 2002 19:07:28 -0000 Received: from unknown (HELO mail.redhat.com) (12.107.208.239) by sources.redhat.com with SMTP; 28 Jan 2002 19:07:28 -0000 Received: from dot.sfbay.redhat.com (dot.sfbay.redhat.com [205.180.230.224]) by mail.redhat.com (8.11.6/8.8.7) with SMTP id g0SJ7PC29167; Mon, 28 Jan 2002 14:07:26 -0500 Received: (from rth@localhost) by dot.sfbay.redhat.com (8.11.6/8.11.6) id g0SJ7Ce25966; Mon, 28 Jan 2002 11:07:12 -0800 X-Authentication-Warning: dot.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Mon, 28 Jan 2002 11:10:00 -0000 From: Richard Henderson To: John David Anglin Cc: geoffk@geoffk.org, gcc-patches@gcc.gnu.org Subject: Re: gcc failed to bootstrap on Linux/mipsel Message-ID: <20020128110712.A25955@redhat.com> Mail-Followup-To: Richard Henderson , John David Anglin , geoffk@geoffk.org, gcc-patches@gcc.gnu.org References: <200201281704.g0SH4nJZ019872@hiauly1.hia.nrc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200201281704.g0SH4nJZ019872@hiauly1.hia.nrc.ca>; from dave@hiauly1.hia.nrc.ca on Mon, Jan 28, 2002 at 12:04:49PM -0500 X-SW-Source: 2002-01/txt/msg01995.txt.bz2 On Mon, Jan 28, 2002 at 12:04:49PM -0500, John David Anglin wrote: > > > for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) > > > if (TEST_HARD_REG_BIT (regs_invalidated_by_call, i) > > > && rtx_varies_p (gen_rtx_REG (Pmode, i), /*for_alias=*/1)) > > I see the problem. The comment for the above is incorrect: > > /* Invalidate all hard registers clobbered by calls. With one exception: > a call-clobbered PIC register is still function-invariant for our > purposes, since we can hoist any PIC calculations out of the loop. > Thus the call to rtx_varies_p. */ > > You can hoist any insns involving the PIC register except those > that set it. Bugger all. Well, I guess we'll just have to do for_alias=0 for now. I don't think we can fix this properly for 3.1. r~