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]

Re: __attribute__((aligned(16)) on x86


On Jun 30, 2001, "Ryan T. Sammartino" <ryants@home.com> wrote:

> The problem is that none of v1, v2 or ret are aligned properly, so the
> first movaps instruction fails.

> I'm willing to dig into gcc source to try and come up with a patch, but
> don't even have a clue where to start looking.

I believe the problem is that the alignment of automatic variables is
limited to PREFERRED_STACK_BOUNDARY and to whatever alignment the C
library sets up in its initialization code.  Even though
PREFERRED_STACK_BOUNDARY has defaulted to 16 bytes these days, I think
most (if not all) versions of glibc only guarantee 8-byte alignment of
the stack.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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