This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] tree-ssa-dce.c contains uninitialized variable access
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 29 Jan 2003 08:14:55 -0500
- Subject: Re: [tree-ssa] tree-ssa-dce.c contains uninitialized variable access
- Organization: Red Hat Canada
- References: <hovg08jqi6.fsf@byrd.suse.de>
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