The condition was always optimized to 1. Tested on powerpc-linux and
checked in as obvious.
Andreas.

2012-01-15  Andreas Schwab  <sch...@linux-m68k.org>

        * gcc.dg/torture/pr8081.c: Fix char signedness assumption.

Index: gcc.dg/torture/pr8081.c
===================================================================
--- gcc.dg/torture/pr8081.c     (revision 183191)
+++ gcc.dg/torture/pr8081.c     (working copy)
@@ -16,11 +16,11 @@ main (int argc, char **argv)
     {
       return *(block *) &b;
     }
-  b.val[0] = -1;
-  b.val[9] = -2;
+  b.val[0] = 1;
+  b.val[9] = 2;
   a=retframe_block ();
-  if (a.val[0] != -1
-      || a.val[9] != -2)
+  if (a.val[0] != 1
+      || a.val[9] != 2)
     abort ();
   return 0;
 }

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to