re PR tree-optimization/35834 (building libiberty fails in build2_stat for -mcpu=m32c as of r133403)

2008-04-08  Richard Guenther  <rguenther@suse.de>

	PR middle-end/35834
	* tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
	for adding index to base.

From-SVN: r134090
This commit is contained in:
Richard Guenther 2008-04-08 09:53:52 +00:00 committed by Richard Biener
parent 0b03b302ae
commit 903b300328
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-04-08 Richard Guenther <rguenther@suse.de>
PR middle-end/35834
* tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
for adding index to base.
2008-04-08 Kai Tietz <kai.tietz@onevision.com>
* config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.

View File

@ -640,9 +640,9 @@ create_mem_ref (block_stmt_iterator *bsi, tree type, aff_tree *addr)
{
atype = TREE_TYPE (parts.base);
parts.base = force_gimple_operand_bsi (bsi,
fold_build2 (PLUS_EXPR, atype,
fold_build2 (POINTER_PLUS_EXPR, atype,
parts.base,
fold_convert (atype, parts.index)),
parts.index),
true, NULL_TREE, true, BSI_SAME_STMT);
}
else