From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24800 invoked by alias); 28 May 2009 18:55:55 -0000 Received: (qmail 24773 invoked by uid 22791); 28 May 2009 18:55:54 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from web111613.mail.gq1.yahoo.com (HELO web111613.mail.gq1.yahoo.com) (67.195.23.100) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Thu, 28 May 2009 18:55:49 +0000 Received: (qmail 35103 invoked by uid 60001); 28 May 2009 18:55:47 -0000 Message-ID: <479034.31297.qm@web111613.mail.gq1.yahoo.com> Received: from [70.98.240.34] by web111613.mail.gq1.yahoo.com via HTTP; Thu, 28 May 2009 11:55:47 PDT References: <516867.32690.qm@web111606.mail.gq1.yahoo.com> <353851.97620.qm@web111617.mail.gq1.yahoo.com> <4A1EDC7E.4040209@redhat.com> Date: Thu, 28 May 2009 21:05:00 -0000 From: Jamie Prescott Subject: Re: Forgetting return values To: Andrew Haley Cc: Adam Nemet , "gcc-help@gcc.gnu.org" , gcc@gcc.gnu.org In-Reply-To: <4A1EDC7E.4040209@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes 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: 2009-05/txt/msg00664.txt.bz2 > From: Andrew Haley > To: Jamie Prescott > Cc: Adam Nemet ; "gcc-help@gcc.gnu.org" > Sent: Thursday, May 28, 2009 11:48:30 AM > Subject: Re: Forgetting return values > > Jamie Prescott wrote: > >> From: Adam Nemet > > >>> Why is the memory clobber required, and why GCC does not understand to > >>> sync the value to memory when passing the address to a function? > >> Because you never inform GCC that you will use the value at > >> address *NAME. Try to use "m"(*name) rather than "a1"(name) in the asm. > > > > That's 'data', not 'name'. But OK, got it. unfortunately, I cannot use "m" > since > > that value need to go into a specific register. > > This is not appropriate for gcc@, which is for gcc development. Sorry, I posted to gcc@ because I thought it was a problem with my TARGET. - Jamie