From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19714 invoked by alias); 7 Oct 2005 21:41:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19706 invoked by uid 22791); 7 Oct 2005 21:41:03 -0000 Received: from biscayne-one-station.mit.edu (HELO biscayne-one-station.mit.edu) (18.7.7.80) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 07 Oct 2005 21:41:02 +0000 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id j97LenVP003684; Fri, 7 Oct 2005 17:40:50 -0400 (EDT) Received: from scrubbing-bubbles.mit.edu (SCRUBBING-BUBBLES.MIT.EDU [18.7.16.68]) (authenticated bits=56) (User authenticated as nathanw@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.1/8.12.4) with ESMTP id j97Lekm1026106 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 7 Oct 2005 17:40:46 -0400 (EDT) Received: (from nathanw@localhost) by scrubbing-bubbles.mit.edu (8.12.9) id j97LekAP006733; Fri, 7 Oct 2005 17:40:46 -0400 (EDT) To: Daniel Jacobowitz Cc: Jim Blandy , gdb-patches@sourceware.org Subject: Re: RFA: general prologue analysis framework References: <20051007213028.GA2371@nevyn.them.org> From: "Nathan J. Williams" Date: Fri, 07 Oct 2005 21:41:00 -0000 In-Reply-To: <20051007213028.GA2371@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -3.224 X-Spam-Flag: NO X-SW-Source: 2005-10/txt/msg00065.txt.bz2 Daniel Jacobowitz writes: > If you're guaranteed that the compiler only adjusts the stack pointer > by constant amounts, either in the prologue or down and then up again > within a basic block, maybe it would be useful. But very few compilers > behave that way. > > Did your compiler really give you that guarantee? Observationally, it only ever adjusted the stack pointer by constant amounts, though it did it wherever it felt like. I don't think the compiler was smart enough to do anything more complicated than constant adjustments. As far as actual guarantees, I have no idea. It was a binary product and my customer was barely on speaking terms with their compiler vendor. - Nathan