Commit 60419cc8 by Richard Guenther Committed by Richard Biener

tree-ssa.c (useless_type_conversion_p_1): Only for types that require structural…

tree-ssa.c (useless_type_conversion_p_1): Only for types that require structural equality defer to the langhook.

2009-08-07  Richard Guenther  <rguenther@suse.de>

	* tree-ssa.c (useless_type_conversion_p_1): Only for types
	that require structural equality defer to the langhook.

From-SVN: r150559
parent 685b0d13
2009-08-07 Richard Guenther <rguenther@suse.de>
* tree-ssa.c (useless_type_conversion_p_1): Only for types
that require structural equality defer to the langhook.
2009-08-07 Martin Jambor <mjambor@suse.cz> 2009-08-07 Martin Jambor <mjambor@suse.cz>
* ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed * ipa-prop.h (enum jump_func_type): New value IPA_JF_ANCESTOR, changed
......
...@@ -1073,11 +1073,11 @@ useless_type_conversion_p_1 (tree outer_type, tree inner_type) ...@@ -1073,11 +1073,11 @@ useless_type_conversion_p_1 (tree outer_type, tree inner_type)
else if (AGGREGATE_TYPE_P (inner_type) else if (AGGREGATE_TYPE_P (inner_type)
&& TREE_CODE (inner_type) == TREE_CODE (outer_type)) && TREE_CODE (inner_type) == TREE_CODE (outer_type))
{ {
/* ??? This seems to be necessary even for aggregates that don't if (TYPE_STRUCTURAL_EQUALITY_P (outer_type)
have TYPE_STRUCTURAL_EQUALITY_P set. */ || TYPE_STRUCTURAL_EQUALITY_P (inner_type))
return lang_hooks.types_compatible_p (inner_type, outer_type);
/* ??? This should eventually just return false. */ return false;
return lang_hooks.types_compatible_p (inner_type, outer_type);
} }
return false; return false;
......
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