From 226e8d20a1ac4e9d274ea22912a1f220f3d15c6a Mon Sep 17 00:00:00 2001 From: Steve Ellcey Date: Tue, 22 Apr 2008 23:31:58 +0000 Subject: [PATCH] wo_prof_global_var.c: Initialize array. * gcc.dg/struct/wo_prof_global_var.c: Initialize array. * gcc.dg/struct/wo_prof_malloc_size_var.c: Ditto. * gcc.dg/struct/w_prof_local_var.c: Ditto. * gcc.dg/struct/w_prof_global_var.c: Ditto. * gcc.dg/struct/wo_prof_local_var.c: Ditto. From-SVN: r134572 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/struct/w_prof_global_var.c | 4 ++++ gcc/testsuite/gcc.dg/struct/w_prof_local_var.c | 4 ++++ gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c | 4 ++++ gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c | 4 ++++ gcc/testsuite/gcc.dg/struct/wo_prof_malloc_size_var.c | 3 +++ 6 files changed, 27 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 28b643168f1..ff78770e9ce 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2008-04-22 Steve Ellcey + + * gcc.dg/struct/wo_prof_global_var.c: Initialize array. + * gcc.dg/struct/wo_prof_malloc_size_var.c: Ditto. + * gcc.dg/struct/w_prof_local_var.c: Ditto. + * gcc.dg/struct/w_prof_global_var.c: Ditto. + * gcc.dg/struct/wo_prof_local_var.c: Ditto. + 2008-04-22 Jason Merrill PR c++/35316 diff --git a/gcc/testsuite/gcc.dg/struct/w_prof_global_var.c b/gcc/testsuite/gcc.dg/struct/w_prof_global_var.c index 5fa1ca55da6..8f1ae752fd3 100644 --- a/gcc/testsuite/gcc.dg/struct/w_prof_global_var.c +++ b/gcc/testsuite/gcc.dg/struct/w_prof_global_var.c @@ -15,6 +15,10 @@ main () int i, sum; p = malloc (N * sizeof (str_t)); + + for (i = 0; i < N; i++) + p[i].b = i; + for (i = 0; i < N; i++) p[i].a = p[i].b + 1; diff --git a/gcc/testsuite/gcc.dg/struct/w_prof_local_var.c b/gcc/testsuite/gcc.dg/struct/w_prof_local_var.c index 91d580fda69..c84863c3790 100644 --- a/gcc/testsuite/gcc.dg/struct/w_prof_local_var.c +++ b/gcc/testsuite/gcc.dg/struct/w_prof_local_var.c @@ -13,6 +13,10 @@ main () int i, sum; str_t * p = malloc (N * sizeof (str_t)); + + for (i = 0; i < N; i++) + p[i].b = i; + for (i = 0; i < N; i++) p[i].a = p[i].b + 1; diff --git a/gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c b/gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c index 7e08e96f7b4..a38dd58b021 100644 --- a/gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c +++ b/gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c @@ -18,6 +18,10 @@ main () int i, sum; p = malloc (N * sizeof (str_t)); + + for (i = 0; i < N; i++) + p[i].b = i; + for (i = 0; i < N; i++) p[i].a = p[i].b + 1; diff --git a/gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c b/gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c index e931efa1272..65b31978312 100644 --- a/gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c +++ b/gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c @@ -16,6 +16,10 @@ main () int i, sum; str_t * p = malloc (N * sizeof (str_t)); + + for (i = 0; i < N; i++) + p[i].b = i; + for (i = 0; i < N; i++) p[i].a = p[i].b + 1; diff --git a/gcc/testsuite/gcc.dg/struct/wo_prof_malloc_size_var.c b/gcc/testsuite/gcc.dg/struct/wo_prof_malloc_size_var.c index 32842b0a7eb..7e80baba7d8 100644 --- a/gcc/testsuite/gcc.dg/struct/wo_prof_malloc_size_var.c +++ b/gcc/testsuite/gcc.dg/struct/wo_prof_malloc_size_var.c @@ -21,6 +21,9 @@ main () if (p == 0) return 0; + for (i = 0; i < N; i++) + p[i].b = i; + for (i = 0; i < N; i++) p[i].a = p[i].b + 1; -- 2.30.2