This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch to expand_decl


As previously discussed:

Tue Feb  8 15:30:53 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>

	* stmt.c (expand_decl): Do set RTX_UNCHANGING_P for TREE_READONLY.

*** stmt.c.old	Thu Jun 17 14:49:05 1999
--- stmt.c	Sun Feb  6 18:19:32 2000
*************** expand_decl (decl)
*** 3714,3726 ****
    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
--- 3714,3719 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]