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]

[tree-ssa] tiny tree-must-alias cleanup


Why define macros and not use them?
Is the branch open again?

Gr.
Steven


	* tree-must-alias (tree_compute_must_alias): Use num_call_clobbered_vars
	and call_clobbered_var() instead of poking in the call_clobbered_vars
	varray directly.

Index: tree-must-alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-must-alias.c,v
retrieving revision 1.1.2.13
diff -c -3 -p -r1.1.2.13 tree-must-alias.c
*** tree-must-alias.c	5 Dec 2003 23:02:24 -0000	1.1.2.13
--- tree-must-alias.c	11 Dec 2003 00:38:23 -0000
*************** tree_compute_must_alias (tree fndecl, bi
*** 87,95 ****
  
    /* Now traverse the original list of addressable variables and remove
       those whose addresses are not needed anymore.  */
!   for (i = 0; i < VARRAY_ACTIVE_SIZE (call_clobbered_vars); i++)
      {
!       tree var = VARRAY_TREE (call_clobbered_vars, i);
        var_ann_t ann = var_ann (var);
        
        /* We are only interested in disambiguating addressable locals.  */
--- 87,95 ----
  
    /* Now traverse the original list of addressable variables and remove
       those whose addresses are not needed anymore.  */
!   for (i = 0; i < num_call_clobbered_vars; i++)
      {
!       tree var = call_clobbered_var (i);
        var_ann_t ann = var_ann (var);
        
        /* We are only interested in disambiguating addressable locals.  */


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