This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: about stack/args growing up/down
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 16 May 2003 14:43:19 +0930
- Subject: Re: about stack/args growing up/down
- References: <200305152030.h4FKU9C29458@greed.delorie.com>
On Thu, May 15, 2003 at 04:30:09PM -0400, DJ Delorie wrote:
>
> I'm working on g++.dg/abi/param1.C for xstormy16, where the stack
> grows up and args grow down. In this case, expand_call (calls.c:2699)
> calculates the address of the outgoing parm block as the lowest
> address of the block (virtual-outgoing-args - 128), but
> locate_and_pad_parm is giving the args a negative offset, causing gcc
> to later put the arg in the wrong place.
>
> For this type of stack, which of the two values (argblock,
> arg->offset) is right, and which one is wrong?
hppa32 stack grows up and args down, and argblock is set to the end
of the outgoing parm block (highest address). You probably want
to look at STACK_POINTER_OFFSET.
--
Alan Modra
IBM OzLabs - Linux Technology Centre