Message ID | 20100820155315.GE702@tyan-ft48-01.lab.bos.redhat.com |
---|---|
State | New |
Headers | show |
--- gcc/tree-ssa-address.c.jj 2010-08-16 19:24:24.000000000 +0200 +++ gcc/tree-ssa-address.c 2010-08-20 15:53:03.000000000 +0200 @@ -299,6 +299,7 @@ tree_mem_ref_addr (tree type, tree mem_r if (offset && !integer_zerop (offset)) { + offset = fold_convert (sizetype, offset); if (addr_off) addr_off = fold_build2 (PLUS_EXPR, sizetype, addr_off, offset); else