Commit c05a0766 by Daniel Berlin Committed by Daniel Berlin

alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT, revert to returning false.

2005-07-20  Daniel Berlin  <dberlin@dberlin.org>

	* alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
	revert to returning false.

From-SVN: r102256
parent 58669148
2005-07-20 Daniel Berlin <dberlin@dberlin.org>
* alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
revert to returning false.
2005-07-21 Uros Bizjak <uros@kss-loka.si> 2005-07-21 Uros Bizjak <uros@kss-loka.si>
PR target/21149 PR target/21149
......
...@@ -1952,13 +1952,13 @@ nonoverlapping_component_refs_p (tree x, tree y) ...@@ -1952,13 +1952,13 @@ nonoverlapping_component_refs_p (tree x, tree y)
do do
{ {
fieldx = TREE_OPERAND (x, 1); fieldx = TREE_OPERAND (x, 1);
typex = DECL_FIELD_CONTEXT (fieldx); typex = TYPE_MAIN_VARIANT (DECL_FIELD_CONTEXT (fieldx));
y = orig_y; y = orig_y;
do do
{ {
fieldy = TREE_OPERAND (y, 1); fieldy = TREE_OPERAND (y, 1);
typey = DECL_FIELD_CONTEXT (fieldy); typey = TYPE_MAIN_VARIANT (DECL_FIELD_CONTEXT (fieldy));
if (typex == typey) if (typex == typey)
goto found; goto found;
...@@ -1971,7 +1971,7 @@ nonoverlapping_component_refs_p (tree x, tree y) ...@@ -1971,7 +1971,7 @@ nonoverlapping_component_refs_p (tree x, tree y)
} }
while (x && TREE_CODE (x) == COMPONENT_REF); while (x && TREE_CODE (x) == COMPONENT_REF);
/* Never found a common type. */ /* Never found a common type. */
return true; return false;
found: found:
/* If we're left with accessing different fields of a structure, /* If we're left with accessing different fields of a structure,
......
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