From b990b40f023aef5d01dc60a7582770302eef1706 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 28 Jan 2009 18:17:13 +0000 Subject: re PR tree-optimization/38997 (-ftree-loop-distribution ICEs) gcc/ PR tree-optimization/38997 * tree-loop-distribution.c (generate_memset_zero): Use POINTER_PLUS_EXPR for a pointer addition. gcc/testsuite/ PR tree-optimization/38997 * gcc.dg/tree-ssa/pr38997.c: New. From-SVN: r143740 --- gcc/testsuite/gcc.dg/tree-ssa/pr38997.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/tree-ssa/pr38997.c diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr38997.c b/gcc/testsuite/gcc.dg/tree-ssa/pr38997.c new file mode 100644 index 0000000..211203c --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr38997.c @@ -0,0 +1,16 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -ftree-loop-distribution" } */ + +int a[8][8]; +int b[8]; + +void +foo (int i) +{ + int j; + for (j = 0; j < 8; j++) + { + a[i][j] = 0; + b[j] = j; + } +} -- cgit v1.1