This is the mail archive of the gcc-bugs@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]

Re: [tree-ssa] tree-ssa-dce.c contains uninitialized variable access


On Wed, 29 Jan 2003, Andreas Jaeger wrote:

> Diego, could you fix it, please?  
> 
Oops.  Fixed.  Thanks.


Diego.

	* tree-ssa-dce.c (remove_dead_stmt): Fix uninitialized use
	warning.

Index: tree-ssa-dce.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-dce.c,v
retrieving revision 1.1.2.21
diff -d -u -p -r1.1.2.21 tree-ssa-dce.c
--- tree-ssa-dce.c	28 Jan 2003 05:14:23 -0000	1.1.2.21
+++ tree-ssa-dce.c	29 Jan 2003 13:05:17 -0000
@@ -485,6 +485,9 @@ remove_dead_stmt (i, bb)
 {
   tree t;
 
+  t = gsi_stmt (i);
+  STRIP_NOPS (t);
+
   if (dump_file && (dump_flags & TDF_DETAILS))
     {
       fprintf (dump_file, "Deleting : ");
@@ -493,9 +496,6 @@ remove_dead_stmt (i, bb)
     }
 
   stats.removed++;
-
-  t = gsi_stmt (i);
-  STRIP_NOPS (t);
 
   /* If we have determined that a conditional branch statement contributes
      nothing to the program, then we not only remove it, but change the


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