projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91102d5
)
(expand_decl): Set alignment of register for pointer variable.
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 27 Dec 1995 20:24:29 +0000
(15:24 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 27 Dec 1995 20:24:29 +0000
(15:24 -0500)
From-SVN: r10871
gcc/stmt.c
patch
|
blob
|
history
diff --git
a/gcc/stmt.c
b/gcc/stmt.c
index d4f199d8dd837f91d4314ab3c527f9b1b713c255..9b2130f6e91c1e1435cba7a8490b693ae75a51ef 100644
(file)
--- 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;
}
}