re PR rtl-optimization/55273 (ICE in iv_number_of_iterations, at loop-iv.c:2819)
authorJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 Jan 2013 16:36:43 +0000 (17:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 Jan 2013 16:36:43 +0000 (17:36 +0100)
PR tree-optimizatoin/55273
* gcc.c-torture/compile/pr55273.c: New testcase.

* loop-iv.c (iv_number_of_iterations): Consider zero iteration case.

From-SVN: r195275

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr51083.c [deleted file]
gcc/testsuite/gcc.c-torture/compile/pr55273.c [new file with mode: 0644]

index c30e4d4362051577dd6b7ccc5324cf2919bf9109..ee6b3f02f5cf0636f72687a826150e35f0304d6a 100644 (file)
@@ -1,6 +1,6 @@
 2013-01-17  Jan Hubicka  <jh@suse.cz>
 
-       PR tree-optimization/51083
+       PR tree-optimization/55273
        * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
 
 2012-01-17  Uros Bizjak  <ubizjak@gmail.com>
index 108f308629bcb3c02812b6bf65572a3b4750dc10..bfdb73ae5b4b3b5c04b2a66bebe47f4812e48660 100644 (file)
@@ -1,7 +1,7 @@
 2013-01-17  Jan Hubicka  <jh@suse.cz>
 
-       PR tree-optimization/51083
-       * gcc.c-torture/compile/pr51083.c: New testcase.
+       PR tree-optimization/55273
+       * gcc.c-torture/compile/pr55273.c: New testcase.
 
 2012-01-17  Uros Bizjak  <ubizjak@gmail.com>
 
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr51083.c b/gcc/testsuite/gcc.c-torture/compile/pr51083.c
deleted file mode 100644 (file)
index 8ae5199..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-extern int debug_threads;
-extern void sigsuspend (void);
-void my_waitpid (int flags, int wnohang)
-{
-  while (1)
-    {
-      if (flags & 0x80000000)
-        {
-          if (wnohang)
-            break;
-          if (debug_threads)
-            __builtin_puts ("blocking\n");
-          sigsuspend ();
-        }
-      flags ^= 0x80000000;
-    }
-}
-
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr55273.c b/gcc/testsuite/gcc.c-torture/compile/pr55273.c
new file mode 100644 (file)
index 0000000..8ae5199
--- /dev/null
@@ -0,0 +1,18 @@
+extern int debug_threads;
+extern void sigsuspend (void);
+void my_waitpid (int flags, int wnohang)
+{
+  while (1)
+    {
+      if (flags & 0x80000000)
+        {
+          if (wnohang)
+            break;
+          if (debug_threads)
+            __builtin_puts ("blocking\n");
+          sigsuspend ();
+        }
+      flags ^= 0x80000000;
+    }
+}
+