From: Jakub Jelinek Date: Thu, 17 Jan 2013 16:36:43 +0000 (+0100) Subject: re PR rtl-optimization/55273 (ICE in iv_number_of_iterations, at loop-iv.c:2819) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=610fb637256be2bd904fac22a683b45d2d9294da;p=gcc.git re PR rtl-optimization/55273 (ICE in iv_number_of_iterations, at loop-iv.c:2819) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c30e4d43620..ee6b3f02f5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,6 @@ 2013-01-17 Jan Hubicka - PR tree-optimization/51083 + PR tree-optimization/55273 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case. 2012-01-17 Uros Bizjak diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 108f308629b..bfdb73ae5b4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,7 @@ 2013-01-17 Jan Hubicka - 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 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr51083.c b/gcc/testsuite/gcc.c-torture/compile/pr51083.c deleted file mode 100644 index 8ae5199b789..00000000000 --- a/gcc/testsuite/gcc.c-torture/compile/pr51083.c +++ /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 index 00000000000..8ae5199b789 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr55273.c @@ -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; + } +} +