]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
wo_prof_global_var.c: Use uninitialized integer values instead of uninitialized FP...
authorMaxim Kuvyrkov <maxim@codesourcery.com>
Wed, 19 Nov 2008 11:12:07 +0000 (11:12 +0000)
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>
Wed, 19 Nov 2008 11:12:07 +0000 (11:12 +0000)
  * 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.

From-SVN: r141998

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/struct/wo_prof_global_var.c
gcc/testsuite/gcc.dg/struct/wo_prof_local_var.c

index 350364fe984913d53170cf59bc423564c7587513..5a80bd28d5dc742525a02dd269acc2fa4f8a4377 100644 (file)
@@ -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.
index 58790bfd527091c2808ad82e7054a5a1911e7a5b..4c00d02434ab42ecf68e4e115981b1ed101d37e7 100644 (file)
@@ -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;
index 5a778a7d439169c83f4b7e316ea60d693b2f0e3b..a6fd7be43716e7903d40bcea6cb11acba97842ae 100644 (file)
@@ -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;