From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20650 invoked by alias); 16 Mar 2004 17:47:54 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 20642 invoked from network); 16 Mar 2004 17:47:53 -0000 Received: from unknown (HELO av.mvista.com) (12.44.186.158) by sources.redhat.com with SMTP; 16 Mar 2004 17:47:53 -0000 Received: from mvista.com (av [127.0.0.1]) by av.mvista.com (8.9.3/8.9.3) with ESMTP id JAA22334; Tue, 16 Mar 2004 09:47:34 -0800 Message-ID: <40573D8F.DAAB6354@mvista.com> Date: Tue, 16 Mar 2004 17:47:00 -0000 From: Michael Eager Organization: MontaVista Software, Inc. MIME-Version: 1.0 To: Eric Christopher CC: Richard Henderson , gcc Subject: Re: locking problem with mips atomicity References: <405642CE.F6DB290F@mvista.com> <20040316045706.GA5985@redhat.com> <405726C9.86724574@mvista.com> <1079458507.3799.8.camel@dzur.sfbay.redhat.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00836.txt.bz2 Eric Christopher wrote: > > > > Better is to make the compiler force the address into a register. > > > It may already be that way, resulting in "la r3,0(r4)". > > > > This is exactly what this code does. > > He means to force it in without using the la macro. > > In fact, I think I'd prefer this. How? -- Michael Eager eager@mvista.com 408-328-8426 MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA 94085