aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/ChangeLog16
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre14.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre15.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre16.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre17.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre19.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre20.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre3.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/loadpre5.c4
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-1.c6
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-4.c4
-rw-r--r--gcc/testsuite/gcc.dg/tree-ssa/ssa-pre-6.c4
13 files changed, 49 insertions, 33 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5edd590..d124d4a 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,19 @@
+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
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre1.c
index e26fa93..ce78f02 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 f4c06f2..11bfd00 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 3e3ff7c..b04c762 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 3702440..193ae52 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 93c530d..ec0f6ec 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 62ded9a..0ad8988 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 330b67a..92a2353 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 8767e16..4bda8f6 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 aa5779a..475050a 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 3bdd204..3dd3b52 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 6f4c2f3..274737a 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 a639e9d..2811f43 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)