From patchwork Tue Aug 31 10:00:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix PR45455 From: Richard Guenther X-Patchwork-Id: 63220 Message-Id: To: gcc-patches@gcc.gnu.org Date: Tue, 31 Aug 2010 12:00:30 +0200 (CEST) Committed. Richard. 2010-08-31 Richard Guenther 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;