diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5edd5900b4a..d124d4ac7f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,19 @@ +2010-03-26 Martin Jambor + + * gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c: Deleted trailing + whitespace, renamed main to foo. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c: Likewise. + * gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c: Likewise. + 2010-03-26 Dodji Seketeli PR c++/43327 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c index e26fa9302b4..ce78f02c66b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c @@ -1,10 +1,10 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ -int main(int *a, int argc) +int foo(int *a, int argc) { int c; int d, e; - + /* Should be able to eliminate the second load of *a along the main path. */ d = *a; if (argc) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c index f4c06f264d3..11bfd00605d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c @@ -1,11 +1,11 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ typedef int type[2]; -int main(type *a, int argc) +int foo(type *a, int argc) { type c = {0, 1}; int d, e; - + /* Should be able to eliminate the second load of *a along the main path. */ d = (*a)[0]; if (argc) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c index 3e3ff7c4535..b04c7621b65 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c @@ -1,11 +1,11 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ typedef int type[2]; -int main(type *a, int argc, int t) +int foo(type *a, int argc, int t) { type c = {0, 1}; int d, e; - + /* Should be able to eliminate the second load of *a along the main path. */ d = (*a)[t]; if (argc) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c index 3702440f3d7..193ae52d540 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c @@ -1,10 +1,10 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ typedef int type[2]; -int main(type *a, int argc) +int foo(type *a, int argc) { int d, e; - + /* Should be able to eliminate the second load of *a along the main path. */ d = (*a)[0]; if (argc) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c index 93c530d5e57..ec0f6ec2fa7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c @@ -1,10 +1,10 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ typedef int type[2]; -int main(type *a, int argc) +int foo(type *a, int argc) { int d, e; - + /* Should be able to eliminate the second load of *a along the main path. */ d = (*a)[argc]; if (argc) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c index 62ded9a6d80..0ad8988f702 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c @@ -1,10 +1,10 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ typedef int type[2]; -int main(type *a, int argc) +int foo(type *a, int argc) { int d, e; - + /* Should be able to eliminate the second load of *a along the main path. */ d = (*a)[argc]; if (!d) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c index 330b67a579f..92a235325ac 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c @@ -1,10 +1,10 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ typedef int type[2]; -int main(type *a, int argc) +int foo(type *a, int argc) { int d, e; - + /* Should be able to eliminate the second load of *a along the main path. */ d = (*a)[argc]; if (!d) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c index 8767e16a98e..4bda8f6445d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c @@ -1,6 +1,6 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ -int main(int **a,int argc) +int foo(int **a,int argc) { int b; int d, e; @@ -13,7 +13,7 @@ int main(int **a,int argc) { } - /* Should be able to eliminate one of the *(*a)'s along the if path + /* Should be able to eliminate one of the *(*a)'s along the if path by pushing it into the else path. We will also eliminate one of the *a's. */ e = *(*a); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c index aa5779a5650..475050a6f85 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ int p; int r; @@ -8,7 +8,7 @@ static int a(void) { return p; } -int main(int argc) +int foo(int argc) { int q; q = a(); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c index 3bdd204a604..3dd3b526333 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c @@ -1,7 +1,7 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ extern int printf (const char *, ...); -int main(int argc, char **argv) +int foo(int argc, char **argv) { int a; int b; @@ -15,7 +15,7 @@ int main(int argc, char **argv) } printf ("%d, %d\n", a, b + c); } -/* We should eliminate one evaluation of b + c along the main path, +/* We should eliminate one evaluation of b + c along the main path, causing one reload. */ /* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */ /* { dg-final { cleanup-tree-dump "pre" } } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c index 6f4c2f3a82d..274737ac4e7 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c @@ -1,6 +1,6 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ -int main(void) +int foo(void) { int x, c, y; x = 3; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c index a639e9dffe8..2811f4379aa 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c @@ -1,6 +1,6 @@ -/* { dg-do compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-pre-stats" } */ -int main(int x) +int foo(int x) { int c, y; if (c)