aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2000-02-08 22:11:21 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2000-02-08 17:11:21 -0500
commitf5a500108ae0df4eedbe6212e16ae237aec51e93 (patch)
treec73e3fb072117bf4cb2191f33fb83996a2906ec1 /gcc/stmt.c
parentbad196d78e98ea145d8a3283eef081d56117a585 (diff)
downloadgcc-f5a500108ae0df4eedbe6212e16ae237aec51e93.zip
gcc-f5a500108ae0df4eedbe6212e16ae237aec51e93.tar.gz
gcc-f5a500108ae0df4eedbe6212e16ae237aec51e93.tar.bz2
* stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
From-SVN: r31856
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 8c76b3b..9f6b03e 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -3868,15 +3868,9 @@ expand_decl (decl)
if (TREE_THIS_VOLATILE (decl))
MEM_VOLATILE_P (DECL_RTL (decl)) = 1;
-#if 0 /* A variable is not necessarily unchanging
- just because it is const. RTX_UNCHANGING_P
- means no change in the function,
- not merely no change in the variable's scope.
- It is correct to set RTX_UNCHANGING_P if the variable's scope
- is the whole function. There's no convenient way to test that. */
+
if (TREE_READONLY (decl))
RTX_UNCHANGING_P (DECL_RTL (decl)) = 1;
-#endif
}
/* Emit code to perform the initialization of a declaration DECL. */