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]
Other format: [Raw text]

[patch] function.c: clear MEM flags better


Another one from our internal branch...

2002-03-05  Chris Moller  <cmoller at redhat dot com>

	* function.c (assign_stack_temp_for_type): set 
	MEM_ATTRS (p->slot)->alias to zero as part of clearing 
	MEM flags before set_mem_alias_set().


Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.405
diff -p -2 -r1.405 function.c
*** function.c	4 Mar 2003 06:20:12 -0000	1.405
--- function.c	6 Mar 2003 00:20:02 -0000
*************** assign_stack_temp_for_type (mode, size, 
*** 807,810 ****
--- 807,812 ----
      }
  
+   if (MEM_ATTRS (p->slot))
+     MEM_ATTRS (p->slot)->alias = 0;
  
    /* Create a new MEM rtx to avoid clobbering MEM flags of old slots.  */


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