[Bug tree-optimization/35834] building libiberty fails in build2_stat for -mcpu=m32c as of r133403
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Apr 5 15:57:00 GMT 2008
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-04-05 15:56 -------
This will eventually fix it (and not break sth else):
Index: tree-ssa-address.c
===================================================================
--- tree-ssa-address.c (revision 133937)
+++ tree-ssa-address.c (working copy)
@@ -639,9 +639,9 @@ create_mem_ref (block_stmt_iterator *bsi
{
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
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35834
More information about the Gcc-bugs
mailing list