emit-rtl.c (mark_reg_pointer): Don't increase the alignment of a register that is already known to be a pointer.

* emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
        a register that is already known to be a pointer.

From-SVN: r28664
This commit is contained in:
Richard Earnshaw 1999-08-11 07:47:51 +00:00 committed by Jeff Law
parent 67acfbd7b0
commit 00995e782e
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
1999-08-11 Richard Earnshaw (rearnsha@arm.com)
* emit-rtl.c (mark_reg_pointer): Don't increase the alignment of
a register that is already known to be a pointer.
1999-08-11 Bruce Korb <ddsinc09@ix.netcom.com>
* fixinc/inclhack.tpl: Only install assert.h conditionally.

View File

@ -570,9 +570,15 @@ mark_reg_pointer (reg, align)
rtx reg;
int align;
{
REGNO_POINTER_FLAG (REGNO (reg)) = 1;
if (! REGNO_POINTER_FLAG (REGNO (reg)))
{
REGNO_POINTER_FLAG (REGNO (reg)) = 1;
if (align)
if (align)
REGNO_POINTER_ALIGN (REGNO (reg)) = align;
}
else if (align && align < REGNO_POINTER_ALIGN (REGNO (reg)))
/* We can no-longer be sure just how aligned this pointer is */
REGNO_POINTER_ALIGN (REGNO (reg)) = align;
}