------- Comment #14 from hjl dot tools at gmail dot com  2008-02-12 23:45 
-------
(In reply to comment #13)

> > I think it is wrong to set STACK_BOUNDARY to 128 for 32bit since it is
> > hardware related, not ABI related.  They should set  
> > PREFERRED_STACK_BOUNDARY
> > instead, which is set to 128 already. On stack alignment branch, we
> > introduced a new macro, ABI_STACK_BOUNDARY, to handle different ABIs.
> 
> If you do not align the stack at a 128-bit boundary, your program will  
> crash.  The hardware that it is related to is SSE2.

Stack alignment is controlled by PREFERRED_STACK_BOUNDARY. When it is
set to 128, gcc will generate codes aligned at 128bit. STACK_BOUNDARY
is more or less "natural" hardware stack boundary, which should be
the size of pointer.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34621

Reply via email to