From: Uros Bizjak Date: Fri, 20 Jul 2007 09:43:52 +0000 (+0200) Subject: re PR tree-optimization/19910 (ICE with -ftree-loop-linear) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b644e061999f6186d4f0474f3dc2da3370869986;p=gcc.git re PR tree-optimization/19910 (ICE with -ftree-loop-linear) PR tree-optimization/19910 * gcc.dg/pr19910.c: New test. From-SVN: r126799 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fd13893cc31..eba1c042c6d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-07-20 Uros Bizjak + + PR tree-optimization/19910 + * gcc.dg/pr19910.c: New test. + 2007-07-19 Daniel Franke PR fortran/32738 diff --git a/gcc/testsuite/gcc.dg/pr19910.c b/gcc/testsuite/gcc.dg/pr19910.c new file mode 100644 index 00000000000..1ee0d213b8a --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr19910.c @@ -0,0 +1,16 @@ +/* Contributed by Volker Reichelt . */ + +/* { dg-do compile } */ +/* { dg-options "-O2 -ftree-loop-linear" } */ + +int a[3]; + +void foo() +{ + int i, j; + + for (i = 1; i >= 0; --i) + for (j = i; j >= 0; --j) + a[i+j] = 0; +} +