From 258a120bab5d85ac9541551620ff0fc24de1c354 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 6 Jun 2000 03:37:50 +0000 Subject: 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 --- gcc/stmt.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gcc/stmt.c') 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 -- cgit v1.1