From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32380 invoked by alias); 7 Aug 2003 15:04:50 -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 32371 invoked from network); 7 Aug 2003 15:04:49 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 7 Aug 2003 15:04:49 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 50B1D2B7F; Thu, 7 Aug 2003 11:04:43 -0400 (EDT) Message-ID: <3F326A8B.7060704@redhat.com> Date: Thu, 07 Aug 2003 15:04:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michal Ludvig Cc: Andreas Schwab , GDB Patches Subject: Re: [RFA] Skip the "red zone" on AMD64 References: <3F323274.4020907@suse.cz> <3F3237D8.10502@suse.cz> <3F325DE5.3000706@redhat.com> <3F326511.3040506@suse.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00097.txt.bz2 > I think it's something different - while on AIX or PPC64 the called function may clobber the stack above it's frame's top-of-stack address, on AMD64 it's the calling function that could have used the space below bottom-of-stack. The SVR4 PPC32 ABI never goes beyond its end of stack, the PowerOpen (definitly) and PPC64 ABI (I'm told) do. Hence, they have exactly the same problem as ... > Functions on AMD64 sometimes don't allocate space for their local variables (i.e. don't decrement %rsp before pushing something below it), which is often the case for leaf functions that don't call anything else. and the patch won't fix it :-( Andrew