Commit a86907b2 by Richard Guenther Committed by Richard Biener

tree-cfg.c (verify_gimple_expr): Allow conversions from pointers to sizetype and vice versa.

2008-05-18  Richard Guenther  <rguenther@suse.de>

	* tree-cfg.c (verify_gimple_expr): Allow conversions from
	pointers to sizetype and vice versa.

From-SVN: r135504
parent 371a0575
2008-05-18 Richard Guenther <rguenther@suse.de>
* tree-cfg.c (verify_gimple_expr): Allow conversions from
pointers to sizetype and vice versa.
2008-05-18 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.c (ix86_secondary_reload): New static function.
......
......@@ -3658,7 +3658,10 @@ verify_gimple_expr (tree expr)
there is no sign or zero extension involved. */
if (((POINTER_TYPE_P (type) && INTEGRAL_TYPE_P (TREE_TYPE (op)))
|| (POINTER_TYPE_P (TREE_TYPE (op)) && INTEGRAL_TYPE_P (type)))
&& TYPE_PRECISION (type) == TYPE_PRECISION (TREE_TYPE (op)))
&& (TYPE_PRECISION (type) == TYPE_PRECISION (TREE_TYPE (op))
/* For targets were the precision of sizetype doesn't
match that of pointers we need the following. */
|| type == sizetype || TREE_TYPE (op) == sizetype))
return false;
/* Allow conversion from integer to offset type and vice versa. */
......
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