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]

dependence.c: remove unused variable


I was playing some with lint too look for serious problems. I found mostly
minor issues (like redundant computations etc.), and I'll send patches for
these after the tree has been branced. This is one of the "serious" problems
I found (use of uninitialized variable) although it doesn't affect the
compiler. But I'd like it removed to reduce the spurious "serious" warnings.

Bootstrapped and tested on i386-unknown-netbsdelf1.5ZA.

   /Krister



2001-12-31  Krister Walfridsson  <cato@df.lth.se>

        * dependence.c (build_def_use): Remove array_idx.



*** gcc/gcc/dependence.c.bak	Wed Sep 12 19:17:50 2001
--- gcc/gcc/dependence.c	Mon Dec 31 17:00:56 2001
*************** build_def_use (exp, du_type)
*** 269,275 ****
    static loop *loop_def;
    tree node = exp;
    tree array_ref;
-   int array_idx;
    def_use *du_ptr;

    if (du_type == init_def_use)
--- 269,274 ----
*************** build_def_use (exp, du_type)
*** 364,371 ****
  		  }
  	      }

- 	    array_idx -= 1;
-
  	    for (i = 0;
  		 i < du_idx
  		   && strcmp (IDENTIFIER_POINTER (DECL_NAME (array_ref)),
--- 363,368 ----


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