------- Comment #18 from Joey dot ye at intel dot com  2008-08-04 07:24 -------
(In reply to comment #9)
> Joey, I think the problem is the usage of STACK_BOUNDARY / BITS_PER_UNIT
> for stack alignment. On MacOS, STACK_BOUNDARY 128 on ia32. Shouldn't
> we use UNITS_PER_WORD in some cases? Please double check all usages of
> STACK_BOUNDARY / BITS_PER_UNIT in our stack alignment codes.
That's exactly what I worried about 128 bits STACK_BOUNDARY. For example
following code won't work on Darwin:
      int param_ptr_offset = (call_used_regs[REGNO (crtl->drap_reg)]
                              ? 0 : STACK_BOUNDARY / BITS_PER_UNIT);
UNITS_PER_WORD should be used instead. Working on the patch.


-- 


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

Reply via email to