aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-14 19:00:45 +0000
committerRichard Stallman <rms@gnu.org>1993-05-14 19:00:45 +0000
commitb4bf13a89e99e8bd7fa60c9813003467db60d365 (patch)
tree35a54228606508c2fe9e96d235985d6ca86b2f02 /gcc/stmt.c
parent517f954609e08162835cdf711745c23c8fae67f6 (diff)
downloadgcc-b4bf13a89e99e8bd7fa60c9813003467db60d365.zip
gcc-b4bf13a89e99e8bd7fa60c9813003467db60d365.tar.gz
gcc-b4bf13a89e99e8bd7fa60c9813003467db60d365.tar.bz2
(expand_decl): Don't set RTX_UNCHANGING_P.
From-SVN: r4457
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 4400f61..05b0738 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -2995,8 +2995,15 @@ 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
/* If doing stupid register allocation, make sure life of any
register variable starts here, at the start of its scope. */