diff options
Diffstat (limited to 'gcc/gimple-expr.c')
-rw-r--r-- | gcc/gimple-expr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/gimple-expr.c b/gcc/gimple-expr.c index 97b118e..15bef7f 100644 --- a/gcc/gimple-expr.c +++ b/gcc/gimple-expr.c @@ -375,6 +375,11 @@ copy_var_decl (tree var, tree name, tree type) TREE_USED (copy) = 1; DECL_SEEN_IN_BIND_EXPR_P (copy) = 1; DECL_ATTRIBUTES (copy) = DECL_ATTRIBUTES (var); + if (DECL_USER_ALIGN (var)) + { + DECL_ALIGN (copy) = DECL_ALIGN (var); + DECL_USER_ALIGN (copy) = 1; + } return copy; } |