public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix PR45455
@ 2010-08-31 11:25 Richard Guenther
  0 siblings, 0 replies; only message in thread
From: Richard Guenther @ 2010-08-31 11:25 UTC (permalink / raw)
  To: gcc-patches


Committed.

Richard.

2010-08-31  Richard Guenther  <rguenther@suse.de>

	PR testsuite/45455
	* gcc.dg/vect/vect-cond-4.c: Fix use of uninitialized variable.

Index: gcc/testsuite/gcc.dg/vect/vect-cond-4.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/vect-cond-4.c	(revision 163668)
+++ gcc/testsuite/gcc.dg/vect/vect-cond-4.c	(working copy)
@@ -19,7 +19,7 @@ __attribute__ ((noinline)) void
 foo (int z)
 {
   int j, i, x;
-  int curr_a, flag, next_a, curr_b, next_b;
+  int curr_a, curr_b;
 
   for (j = 0; j < M; j++) 
     {
@@ -30,7 +30,7 @@ foo (int z)
       for (i = 0; i < N; i++) 
         {
           curr_a = x > c[i] ? curr_a : z;
-          curr_b = x > c[i] ? next_b : 5;
+          curr_b = x > c[i] ? curr_b : 5;
         }
 
       x_out_a[j] = curr_a;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-31 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-31 11:25 [PATCH] Fix PR45455 Richard Guenther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).