]> gcc.gnu.org Git - gcc.git/commitdiff
* stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Tue, 8 Feb 2000 22:11:21 +0000 (22:11 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 8 Feb 2000 22:11:21 +0000 (17:11 -0500)
From-SVN: r31856

gcc/ChangeLog
gcc/stmt.c

index b0c2ec951f28e093a5b79e83c1d7d9e4982db257..bbbdf4ca80154dc5c57684d01c492d2533d01bde 100644 (file)
@@ -1,3 +1,7 @@
+Tue Feb  8 15:51:50 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.
+
 2000-02-08  Zack Weinberg  <zack@wolery.cumb.org>
 
        * Makefile.in (GEN_PROTOS_OBJS): Remove libcpp.a.
index 8c76b3b57e4d40c5ed91ddab5c8f6b059a87d69c..9f6b03ee3a14723b883b3d4c4c73d088f5ba9c30 100644 (file)
@@ -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
 }
 \f
 /* Emit code to perform the initialization of a declaration DECL.  */
This page took 0.096322 seconds and 5 git commands to generate.