diff options
Diffstat (limited to 'gcc/gimple-expr.cc')
-rw-r--r-- | gcc/gimple-expr.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimple-expr.cc b/gcc/gimple-expr.cc index c0367f4..69a5b7e 100644 --- a/gcc/gimple-expr.cc +++ b/gcc/gimple-expr.cc @@ -385,6 +385,8 @@ copy_var_decl (tree var, tree name, tree type) DECL_CONTEXT (copy) = DECL_CONTEXT (var); TREE_USED (copy) = 1; DECL_SEEN_IN_BIND_EXPR_P (copy) = 1; + if (VAR_P (var)) + VAR_POINTS_TO_READONLY (copy) = VAR_POINTS_TO_READONLY (var); DECL_ATTRIBUTES (copy) = DECL_ATTRIBUTES (var); if (DECL_USER_ALIGN (var)) { |