new macro STARTING_FRAME_PHASE: alignment

Richard Henderson rth@redhat.com
Mon Jan 21 16:13:00 GMT 2002


On Fri, Jan 18, 2002 at 06:35:40PM -0800, Aldy Hernandez wrote:
> this patch introduces a new macro STARTING_FRAME_PHASE (documented).

There is no need for a new macro.  The frame pointer _must_ be
aligned, as we assert here:

emit-rtl.c:4719:  REGNO_POINTER_ALIGN (FRAME_POINTER_REGNUM) = STACK_BOUNDARY;

therefore it must always be the case that

  sb = STACK_BOUNDARY / BITS_PER_UNIT;
  off = STARTING_FRAME_OFFSET % sb;

  STARTING_FRAME_PHASE == (off ? sb - off : 0)



r~



More information about the Gcc-patches mailing list