Commit d902f80a by Richard Kenner

(expand_decl): Set alignment of register for pointer variable.

From-SVN: r10871
parent 91102d5a
...@@ -3396,7 +3396,9 @@ expand_decl (decl) ...@@ -3396,7 +3396,9 @@ expand_decl (decl)
{ {
DECL_RTL (decl) = gen_reg_rtx (reg_mode); DECL_RTL (decl) = gen_reg_rtx (reg_mode);
if (TREE_CODE (type) == POINTER_TYPE) 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; REG_USERVAR_P (DECL_RTL (decl)) = 1;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment