From: Richard Guenther Date: Sat, 4 Apr 2009 09:30:34 +0000 (+0000) Subject: re PR tree-optimization/39636 (ICE in gimple_assign_rhs_code, at gimple.h:1837, 435... X-Git-Tag: releases/gcc-4.5.0~6913 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd15ad3e604aaa74991b72dcbf74ab61fe2fc9c4;p=thirdparty%2Fgcc.git re PR tree-optimization/39636 (ICE in gimple_assign_rhs_code, at gimple.h:1837, 435.gromacs fails to build) 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. * gcc.c-torture/compile/pr39636.c: New testcase. From-SVN: r145532 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 817d483d38cd..18fb789461fa 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 45e0c115c72f..3e322f5524d4 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 000000000000..ceddbb3efede --- /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