Commit f57017cd by Martin Jambor Committed by Martin Jambor

re PR middle-end/40554 (Revision 148941 miscompiled 447.dealII in SPEC CPU 2006)

2009-06-30  Martin Jambor  <mjambor@suse.cz>

	PR middle-end/40554
	* tree-sra.c (sra_modify_expr): Add access->offset to start_offset.

From-SVN: r149087
parent 42bc61e0
2009-06-30 Martin Jambor <mjambor@suse.cz>
PR middle-end/40554
* tree-sra.c (sra_modify_expr): Add access->offset to start_offset.
2009-06-30 Richard Guenther <rguenther@suse.de> 2009-06-30 Richard Guenther <rguenther@suse.de>
* tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to * tree-ssa-alias.c (walk_aliased_vdefs_1): Change interface to
......
...@@ -1908,7 +1908,8 @@ sra_modify_expr (tree *expr, gimple_stmt_iterator *gsi, bool write, ...@@ -1908,7 +1908,8 @@ sra_modify_expr (tree *expr, gimple_stmt_iterator *gsi, bool write,
&& host_integerp (TREE_OPERAND (bfr, 2), 1)) && host_integerp (TREE_OPERAND (bfr, 2), 1))
{ {
chunk_size = tree_low_cst (TREE_OPERAND (bfr, 1), 1); chunk_size = tree_low_cst (TREE_OPERAND (bfr, 1), 1);
start_offset = tree_low_cst (TREE_OPERAND (bfr, 2), 1); start_offset = access->offset
+ tree_low_cst (TREE_OPERAND (bfr, 2), 1);
} }
else else
start_offset = chunk_size = 0; start_offset = chunk_size = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment