From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3126 invoked by alias); 9 Jun 2011 18:47:47 -0000 Received: (qmail 3118 invoked by uid 22791); 9 Jun 2011 18:47:46 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from eta-ori.net (HELO orion.eta-ori.net) (46.4.55.213) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jun 2011 18:47:32 +0000 Received: from [10.0.0.158] (p5B06F6BA.dip.t-dialin.net [91.6.246.186]) by orion.eta-ori.net (Postfix) with ESMTPSA id 9CA2C63 for ; Thu, 9 Jun 2011 20:47:31 +0200 (CEST) Message-ID: <4DF131AD.2040104@impulze.org> Date: Thu, 09 Jun 2011 20:26:00 -0000 From: Daniel Mierswa User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110603 Thunderbird/3.1.10 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: Inline ASM and stack/base pointer References: <4DF0F706.5050803@impulze.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00216.txt.bz2 On 09.06.2011 17:49, Ian Lance Taylor wrote: > Add "%esp" to your clobber list. That should force the compiler to pass > any stack variables using an offset from %ebp. I assume I should use "m" as constraint, right? If so, that didn't do the trick, the generated assembly still contains 0xbc(%%esp) where it should use %%ebp. -- Mierswa, Daniel If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do. --- Linus Torvalds, comp.os.linux.advocacy, 1996/07/22