Commit 521fdcda by Jakub Jelinek Committed by Jakub Jelinek

tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.

	* tree-ssa-address.c (tree_mem_ref_addr): Convert offset to
	sizetype.

Co-Authored-By: Michael Matz <matz@suse.de>

From-SVN: r163409
parent ca865c2b
2010-08-20 Jakub Jelinek <jakub@redhat.com>
Michael Matz <matz@suse.de>
* tree-ssa-address.c (tree_mem_ref_addr): Convert offset to
sizetype.
2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
* ggc-common.c (ggc_mark_root_tab): New function, split out from...
......
......@@ -299,6 +299,7 @@ tree_mem_ref_addr (tree type, tree mem_ref)
if (offset && !integer_zerop (offset))
{
offset = fold_convert (sizetype, offset);
if (addr_off)
addr_off = fold_build2 (PLUS_EXPR, sizetype, addr_off, offset);
else
......
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