Commit 9822c455 by Richard Guenther Committed by Richard Biener

tree-cfg.c (verify_gimple_expr): Fix check for conversions between integral types.

2007-09-01  Richard Guenther  <rguenther@suse.de>

	* tree-cfg.c (verify_gimple_expr): Fix check for conversions
	between integral types.  Also allow conversions between
	pointer types.

From-SVN: r128011
parent 72e8c304
2007-09-01 Richard Guenther <rguenther@suse.de>
* tree-cfg.c (verify_gimple_expr): Fix check for conversions
between integral types. Also allow conversions between
pointer types.
2007-08-31 Andrew Pinski <andrew_pinski@playstation.sony.com> 2007-08-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
* optabs.c (prepare_float_lib_cmp): Use * optabs.c (prepare_float_lib_cmp): Use
......
...@@ -3574,8 +3574,10 @@ verify_gimple_expr (tree expr) ...@@ -3574,8 +3574,10 @@ verify_gimple_expr (tree expr)
return true; return true;
} }
/* Allow conversions between integral types. */ /* Allow conversions between integral types and between
if (INTEGRAL_TYPE_P (type) == INTEGRAL_TYPE_P (TREE_TYPE (op))) pointer types. */
if ((INTEGRAL_TYPE_P (type) && INTEGRAL_TYPE_P (TREE_TYPE (op)))
|| (POINTER_TYPE_P (type) && POINTER_TYPE_P (TREE_TYPE (op))))
return false; return false;
/* Allow conversions between integral types and pointers only if /* Allow conversions between integral types and pointers only if
......
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