Commit 87de2376 by Zdenek Dvorak Committed by Zdenek Dvorak

fold-const.c (ptr_difference_const): Use cst_and_fits_in_hwi instead of host_integerp.

	* fold-const.c (ptr_difference_const): Use
	cst_and_fits_in_hwi instead of host_integerp.

From-SVN: r103436
parent 14a07c92
2005-08-24 Zdenek Dvorak <dvorakz@suse.cz>
* fold-const.c (ptr_difference_const): Use
cst_and_fits_in_hwi instead of host_integerp.
2005-08-24 Paolo Bonzini <bonzini@gnu.org>
* config/darwin.c (gen_pic_offset): New.
......
......@@ -11759,10 +11759,10 @@ ptr_difference_const (tree e1, tree e2, HOST_WIDE_INT *diff)
toffset2 = fold_convert (type, toffset2);
tdiff = fold_build2 (MINUS_EXPR, type, toffset1, toffset2);
if (!host_integerp (tdiff, 0))
if (!cst_and_fits_in_hwi (tdiff))
return false;
*diff = tree_low_cst (tdiff, 0);
*diff = int_cst_value (tdiff);
}
else if (toffset1 || toffset2)
{
......
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