aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-08-31 10:01:04 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-08-31 10:01:04 +0000
commit57c0584a9252cc8e1420f34db82d90858a279597 (patch)
tree0ed1c6aa0b8a20f9ff5e5e50c076f8f41eb34f99
parent9b9596dd6a4cbda0193d5464a8cbc5a1a9644fdb (diff)
downloadgcc-57c0584a9252cc8e1420f34db82d90858a279597.zip
gcc-57c0584a9252cc8e1420f34db82d90858a279597.tar.gz
gcc-57c0584a9252cc8e1420f34db82d90858a279597.tar.bz2
re PR testsuite/45455 (gcc.dg/vect/vect-cond-4.c uses uninitialised variable)
2010-08-31 Richard Guenther <rguenther@suse.de> PR testsuite/45455 * gcc.dg/vect/vect-cond-4.c: Fix use of uninitialized variable. From-SVN: r163669
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/vect/vect-cond-4.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 4f6b931..286eb57 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-31 Richard Guenther <rguenther@suse.de>
+
+ PR testsuite/45455
+ * gcc.dg/vect/vect-cond-4.c: Fix use of uninitialized variable.
+
2010-08-31 Bingfeng Mei <bmei@broadcom.com>
* gcc.dg/vect/pr43430-1.c: Requires vect_condition target.
diff --git a/gcc/testsuite/gcc.dg/vect/vect-cond-4.c b/gcc/testsuite/gcc.dg/vect/vect-cond-4.c
index c3a1585..a46dfc5 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-cond-4.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-cond-4.c
@@ -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;