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
This commit is contained in:
parent
9b9596dd6a
commit
57c0584a92
2 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue