diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 817d483d38c..18fb789461f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2009-04-04 Richard Guenther + + PR tree-optimization/39636 + * tree-ssa-forwprop.c + (forward_propagate_addr_into_variable_array_index): Check for + GIMPLE_ASSIGN before accessing the rhs code. + 2009-04-03 Jason Merrill * stor-layout.c (set_sizetype): Set TYPE_CANONICAL. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 45e0c115c72..3e322f5524d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-04-04 Richard Guenther + + PR tree-optimization/39636 + * gcc.c-torture/compile/pr39636.c: New testcase. + 2009-04-03 H.J. Lu PR rtl-optimization/39607 diff --git a/gcc/testsuite/gcc.c-torture/compile/pr39636.c b/gcc/testsuite/gcc.c-torture/compile/pr39636.c new file mode 100644 index 00000000000..ceddbb3efed --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr39636.c @@ -0,0 +1,11 @@ +typedef float real; +typedef real rvec[3]; +void calc_dx2dx(real *, real *); +void phi_sr(int nj,rvec x[],int k) +{ + int i,j; + for(i=0; (i