Re: x86 Linux stack alignment requirement

2006-06-08 Thread H. J. Lu
On Thu, Jun 08, 2006 at 05:25:32PM -0500, Menezes, Evandro wrote: > > > I see. Provided a local is passed in a register to a > > non-vararg function, it is still OK to align the stack. > > > > Given that we don't support 4 byte aligned stack at all with XMM > > regisrers, I would prefer to incre

RE: x86 Linux stack alignment requirement

2006-06-08 Thread Menezes, Evandro
> > I see. Provided a local is passed in a register to a > non-vararg function, it is still OK to align the stack. > > Given that we don't support 4 byte aligned stack at all with XMM > regisrers, I would prefer to increase Linux/x86 stack alignment to > 16 byte. People can use 4 byte alignment

Re: x86 Linux stack alignment requirement

2006-06-08 Thread H. J. Lu
On Wed, Jun 07, 2006 at 06:38:52PM -0500, Menezes, Evandro wrote: > > > > > > We have several choices for stack alignment requirement > > > > > > > > > > > > 1. Leave it unchanged. Gcc can do > > > > > > a. Nothing. Let the program crash. > > > > > > b. Align stack to 16byte if XMM registe

RE: x86 Linux stack alignment requirement

2006-06-07 Thread Menezes, Evandro
> > > > > We have several choices for stack alignment requirement > > > > > > > > > > 1. Leave it unchanged. Gcc can do > > > > > a. Nothing. Let the program crash. > > > > > b. Align stack to 16byte if XMM registers are > used locally and > > > > >aren't passed down as fu

Re: x86 Linux stack alignment requirement

2006-06-07 Thread H. J. Lu
On Wed, Jun 07, 2006 at 05:17:39PM -0500, Menezes, Evandro wrote: > > > > We have several choices for stack alignment requirement > > > > > > > > 1. Leave it unchanged. Gcc can do > > > > a. Nothing. Let the program crash. > > > > b. Align stack to 16byte if XMM registers are used

RE: x86 Linux stack alignment requirement

2006-06-07 Thread Menezes, Evandro
> > > We have several choices for stack alignment requirement > > > > > > 1. Leave it unchanged. Gcc can do > > > a. Nothing. Let the program crash. > > > b. Align stack to 16byte if XMM registers are used locally and > > >aren't passed down as function arguments. > > > > Why not

Re: x86 Linux stack alignment requirement

2006-06-07 Thread H. J. Lu
On Wed, Jun 07, 2006 at 04:08:14PM -0500, Menezes, Evandro wrote: > HJ, > > > We have several choices for stack alignment requirement > > > > 1. Leave it unchanged. Gcc can do > > a. Nothing. Let the program crash. > > b. Align stack to 16byte if XMM registers are used locally and > >

RE: x86 Linux stack alignment requirement

2006-06-07 Thread Menezes, Evandro
HJ, > We have several choices for stack alignment requirement > > 1. Leave it unchanged. Gcc can do > a. Nothing. Let the program crash. > b. Align stack to 16byte if XMM registers are used locally and >aren't passed down as function arguments. Why not so if the XMM regi