Commit e0004427 by Richard Guenther Committed by Richard Biener

tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix comments.

2005-06-07  Richard Guenther  <rguenth@gcc.gnu.org>

	* tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
	comments.

From-SVN: r100704
parent 789ec619
2005-06-07 Richard Guenther <rguenth@gcc.gnu.org>
* tree-ssa.c (tree_ssa_useless_type_conversion_1): Fix
comments.
2005-06-07 Geoffrey Keating <geoffk@apple.com> 2005-06-07 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/host-darwin.c (segv_handler): Widen the possible * config/rs6000/host-darwin.c (segv_handler): Widen the possible
......
...@@ -849,8 +849,8 @@ delete_tree_ssa (void) ...@@ -849,8 +849,8 @@ delete_tree_ssa (void)
} }
/* Return true if EXPR is a useless type conversion, otherwise return /* Return true if the conversion from INNER_TYPE to OUTER_TYPE is a
false. */ useless type conversion, otherwise return false. */
bool bool
tree_ssa_useless_type_conversion_1 (tree outer_type, tree inner_type) tree_ssa_useless_type_conversion_1 (tree outer_type, tree inner_type)
...@@ -881,8 +881,9 @@ tree_ssa_useless_type_conversion_1 (tree outer_type, tree inner_type) ...@@ -881,8 +881,9 @@ tree_ssa_useless_type_conversion_1 (tree outer_type, tree inner_type)
&& TREE_CODE (TREE_TYPE (outer_type)) == VOID_TYPE) && TREE_CODE (TREE_TYPE (outer_type)) == VOID_TYPE)
return true; return true;
/* Pointers and references are equivalent once we get to GENERIC, /* Pointers/references are equivalent if their pointed to types
so strip conversions that just switch between them. */ are effectively the same. This allows to strip conversions between
pointer types with different type qualifiers. */
else if (POINTER_TYPE_P (inner_type) else if (POINTER_TYPE_P (inner_type)
&& POINTER_TYPE_P (outer_type) && POINTER_TYPE_P (outer_type)
&& TYPE_REF_CAN_ALIAS_ALL (inner_type) && TYPE_REF_CAN_ALIAS_ALL (inner_type)
......
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