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]

Re: ARM: Invalid Stack Alignment BUG


On Wed, Mar 15, 2000 at 09:42:48AM -0700, Jeffrey A Law wrote:
>   > IMO this must be handled in a 
>   > machine independent manner, based on the information already supplied.
> Agreed,  if we are losing space due to inconvenient rounding, then we should
> find a describe when rounding should occur so that we can write the code
> once in the generic parts of the compiler rather than over and over again
> in every backend.

"Over and over"?  One line for an alignment?

The only way to do the rounding correctly not in the back end
is to do the entire frame layout not in the back end.  Rounding
just the size of the local variable store is _always_ not the
right thing to do.  Ideally you want to round the size of the
entire frame -- locals, save regs, outgoing args, varargs spill
and everything.


r~

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