aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-27 15:24:29 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-27 15:24:29 -0500
commitd902f80a15d0091b602ef7e3aaf18dc91d978cdd (patch)
treebc76a61797ae04be2c9d83832952d06a4dba0e5b
parent91102d5aed65fc7ac6d307b8cc9f7e703e089b9c (diff)
downloadgcc-d902f80a15d0091b602ef7e3aaf18dc91d978cdd.zip
gcc-d902f80a15d0091b602ef7e3aaf18dc91d978cdd.tar.gz
gcc-d902f80a15d0091b602ef7e3aaf18dc91d978cdd.tar.bz2
(expand_decl): Set alignment of register for pointer variable.
From-SVN: r10871
-rw-r--r--gcc/stmt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index d4f199d..9b2130f 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -3396,7 +3396,9 @@ expand_decl (decl)
{
DECL_RTL (decl) = gen_reg_rtx (reg_mode);
if (TREE_CODE (type) == POINTER_TYPE)
- mark_reg_pointer (DECL_RTL (decl));
+ mark_reg_pointer (DECL_RTL (decl),
+ (TYPE_ALIGN (TREE_TYPE (TREE_TYPE (decl)))
+ / BITS_PER_UNIT));
REG_USERVAR_P (DECL_RTL (decl)) = 1;
}
}