projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6d851b
)
* gcc.target/i386/pr55845.c (foo): Remove unneeded initialization.
author
Uros Bizjak
<uros@gcc.gnu.org>
Tue, 8 Jan 2013 18:38:30 +0000
(19:38 +0100)
committer
Uros Bizjak
<uros@gcc.gnu.org>
Tue, 8 Jan 2013 18:38:30 +0000
(19:38 +0100)
From-SVN: r195029
gcc/testsuite/gcc.target/i386/pr55845.c
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.target/i386/pr55845.c
b/gcc/testsuite/gcc.target/i386/pr55845.c
index
59f7520
..
daf04e5
100644
(file)
--- a/
gcc/testsuite/gcc.target/i386/pr55845.c
+++ b/
gcc/testsuite/gcc.target/i386/pr55845.c
@@
-12,8
+12,10
@@
foo (int size, double *y, double *x)
{
double sum = 0.0;
int i;
- for (i = 0, sum = 0.; i < size; i++)
+
+ for (i = 0; i < size; i++)
sum += y[i] * x[i];
+
return sum;
}
@@
-21,8
+23,7
@@
static void
__attribute__ ((noinline))
avx_test ()
{
- double x[N];
- double y[N];
+ double x[N], y[N];
double s;
int i;