+2009-04-04 Richard Guenther <rguenther@suse.de>
+
+ 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 <jason@redhat.com>
* stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
+2009-04-04 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/39636
+ * gcc.c-torture/compile/pr39636.c: New testcase.
+
2009-04-03 H.J. Lu <hongjiu.lu@intel.com>
PR rtl-optimization/39607
--- /dev/null
+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<nj-1); i++)
+ for(j=i+1; (j<nj); j++)
+ if (k)
+ calc_dx2dx(x[i],x[j]);
+}
tunit)) != NULL_TREE)
{
gimple offset_def2 = SSA_NAME_DEF_STMT (gimple_assign_rhs1 (offset_def));
- if (gimple_assign_rhs_code (offset_def2) == MULT_EXPR
+ if (is_gimple_assign (offset_def2)
+ && gimple_assign_rhs_code (offset_def2) == MULT_EXPR
&& TREE_CODE (gimple_assign_rhs2 (offset_def2)) == INTEGER_CST
&& tree_int_cst_equal (gimple_assign_rhs2 (offset_def2), tunit))
{