aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@casey.soma.redhat.com>2000-06-06 03:37:50 +0000
committerJason Merrill <jason@gcc.gnu.org>2000-06-05 23:37:50 -0400
commit258a120bab5d85ac9541551620ff0fc24de1c354 (patch)
treef6353c2b2d7aabfa8a09b3b3da4ca7183de48eab /gcc/stmt.c
parentc9d8a8136198b464ef8de88f9ea5d8364d848e8b (diff)
downloadgcc-258a120bab5d85ac9541551620ff0fc24de1c354.zip
gcc-258a120bab5d85ac9541551620ff0fc24de1c354.tar.gz
gcc-258a120bab5d85ac9541551620ff0fc24de1c354.tar.bz2
explow.c (maybe_set_unchanging): New function, broken out from...
* explow.c (maybe_set_unchanging): New function, broken out from... (set_mem_attributes): Here. * expr.h: Declare it. * stmt.c (expand_decl): Call it. From-SVN: r34421
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 5016e67..fe0d58e 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -3817,9 +3817,8 @@ expand_decl (decl)
if (POINTER_TYPE_P (type))
mark_reg_pointer (DECL_RTL (decl),
TYPE_ALIGN (TREE_TYPE (TREE_TYPE (decl))));
-
- if (TREE_READONLY (decl))
- RTX_UNCHANGING_P (DECL_RTL (decl)) = 1;
+
+ maybe_set_unchanging (DECL_RTL (decl), decl);
}
else if (TREE_CODE (DECL_SIZE_UNIT (decl)) == INTEGER_CST