* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157748
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-03-26 Martin Jambor <mjambor@suse.cz>
+
+ * 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 <dodji@redhat.com>
PR c++/43327
-/* { 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)
-/* { 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)
-/* { 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)
-/* { 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)
-/* { 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)
-/* { 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)
-/* { 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)
-/* { 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;
{
}
- /* 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);
-/* { dg-do compile } */
+/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
int p;
int r;
{
return p;
}
-int main(int argc)
+int foo(int argc)
{
int q;
q = a();
-/* { 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;
}
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" } } */
-/* { 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;
-/* { 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)