diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 350364f..5a80bd2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-11-19 Maxim Kuvyrkov <maxim@codesourcery.com> + + * gcc.gd/struct/wo_prof_global_var.c: Use uninitialized integer + values instead of uninitialized FP values to avoid NaNs. + * gcc.dg/struct/wo_prof_local_var.c: Same. + 2008-11-19 Eric Botcazou <ebotcazou@adacore.com> * gfortran.dg/f2003_io_1.f03: XFAIL for all SPARC targets. 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 58790bf..4c00d02 100644 --- a/gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c +++ b/gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c @@ -32,10 +32,10 @@ main () p[i].b = i; for (i = 0; i < N; i++) - p[i].a = p[i].b + 1; + p[i].b = p[i].a + 1; for (i = 0; i < N; i++) - if (p[i].a != p[i].b + 1) + if (p[i].b != p[i].a + 1) abort (); return 0; 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 5a778a7..a6fd7be 100644 --- a/gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c +++ b/gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c @@ -30,10 +30,10 @@ main () p[i].b = i; for (i = 0; i < N; i++) - p[i].a = p[i].b + 1; + p[i].b = p[i].a + 1; for (i = 0; i < N; i++) - if (p[i].a != p[i].b + 1) + if (p[i].b != p[i].a + 1) abort (); return 0; |