From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7350 invoked by alias); 28 Jan 2002 17:04:57 -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 7308 invoked from network); 28 Jan 2002 17:04:54 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 28 Jan 2002 17:04:54 -0000 Received: from hiauly1.hia.nrc.ca (localhost [127.0.0.1]) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) with ESMTP id g0SH4oFN019873; Mon, 28 Jan 2002 12:04:50 -0500 (EST) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) id g0SH4nJZ019872; Mon, 28 Jan 2002 12:04:49 -0500 (EST) Message-Id: <200201281704.g0SH4nJZ019872@hiauly1.hia.nrc.ca> Subject: Re: gcc failed to bootstrap on Linux/mipsel To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Mon, 28 Jan 2002 09:28:00 -0000 From: "John David Anglin" Cc: geoffk@geoffk.org, gcc-patches@gcc.gnu.org In-Reply-To: from "John David Anglin" at Jan 28, 2002 11:35:49 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg01988.txt.bz2 > > 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. Dave -- J. David Anglin dave.anglin@nrc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6605)