* emit-rtl.c (set_mem_attributes): Get alignments for constants.

From-SVN: r46896
This commit is contained in:
Richard Kenner 2001-11-09 22:48:29 +00:00 committed by Richard Kenner
parent 2473ee110f
commit 9ddfb1a75b
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Fri Nov 9 17:51:09 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (set_mem_attributes): Get alignments for constants.
2001-11-09 Aldy Hernandez <aldyh@redhat.com>
* rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.

View File

@ -1736,6 +1736,15 @@ set_mem_attributes (ref, t, objectp)
/* If this is an INDIRECT_REF, we know its alignment. */
else if (TREE_CODE (t) == INDIRECT_REF)
align = TYPE_ALIGN (type);
/* Likewise for constants. */
else if (TREE_CODE_CLASS (TREE_CODE (t)) == 'c')
{
align = TYPE_ALIGN (type);
#ifdef CONSTANT_ALIGNMENT
align = CONSTANT_ALIGNMENT (t, align);
#endif
}
}
/* Now set the attributes we computed above. */