This is the mail archive of the gcc-patches@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: gimple va_arg for arm


On Wed, 2004-07-14 at 18:38, Richard Henderson wrote:
> On Wed, Jul 14, 2004 at 06:33:59PM +0100, Richard Earnshaw wrote:
> > On Thu, 2004-07-08 at 23:11, Richard Henderson wrote:
> > > Not committed, since I'm not 100% certain about the curiousness with
> > > the alignment of arg_pointer_rtx.  It seems to me that if it's necessary
> > > to reduce the alignment for va_arg, then its necessary all of the time.
> > 
> > Not necessarily.  The ABI is perfectly entitled to say that arguments to
> > a variadic function are marshaled in different way to non-variadic
> > function.
> 
> The question was not about marshalling, but about the alignment
> of arg_pointer_rtx.

Which is derived from SP on entry to a function...

So in the AAPCS (and the ATPCS) it must always be double-word aligned,
and in the APCS it was always word aligned.

R.


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