This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about stack/args growing up/down


DJ Delorie <dj@redhat.com> writes:

> 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?

I'm fairly sure this used to work, any idea what changed?

-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]