return NULL;
}
- /* We need to dive through V_C_Es in order to get the size of its parameter
- and not the result type. Ada produces such statements. We are also
- capable of handling the topmost V_C_E but not any of those buried in other
- handled components. */
- if (TREE_CODE (expr) == VIEW_CONVERT_EXPR)
- expr = TREE_OPERAND (expr, 0);
-
- if (contains_view_convert_expr_p (expr))
+ /* We are capable of handling the topmost V_C_E but not any of those
+ buried in other handled components. */
+ if (contains_view_convert_expr_p (TREE_CODE (expr) == VIEW_CONVERT_EXPR
+ ? TREE_OPERAND (expr, 0) : expr))
{
disqualify_base_of_expr (expr, "V_C_E under a different handled "
"component.");
return NULL;
}
+
if (TREE_THIS_VOLATILE (expr))
{
disqualify_base_of_expr (expr, "part of a volatile reference.");
case ARRAY_REF:
case ARRAY_RANGE_REF:
case BIT_FIELD_REF:
+ case VIEW_CONVERT_EXPR:
ret = create_access (expr, stmt, write);
break;
tree base;
bool reverse;
- /* FIXME: This should not be necessary but Ada produces V_C_Es with a type of
- a different size than the size of its argument and we need the latter
- one. */
- if (TREE_CODE (expr) == VIEW_CONVERT_EXPR)
- expr = TREE_OPERAND (expr, 0);
-
base = get_ref_base_and_extent (expr, &poffset, &psize, &pmax_size,
&reverse);
if (!known_size_p (pmax_size)