+Sun Oct 26 09:15:15 1997 Richard Henderson <rth@cygnus.com>
+
+ * expr.c (get_inner_reference): Remove the array bias after
+ converting the index to Pmode.
+
Sat Oct 25 12:20:58 1997 Jeffrey A Law (law@cygnus.com)
* mn10300.h (TARGET_SWITCHES): Add -mmult-bug and -mno-mult-bug.
= domain ? TYPE_MIN_VALUE (domain) : integer_zero_node;
tree index_type = TREE_TYPE (index);
- if (! integer_zerop (low_bound))
- index = fold (build (MINUS_EXPR, index_type, index, low_bound));
-
if (TYPE_PRECISION (index_type) != TYPE_PRECISION (sizetype))
{
index = convert (type_for_size (TYPE_PRECISION (sizetype), 0),
index_type = TREE_TYPE (index);
}
+ if (! integer_zerop (low_bound))
+ index = fold (build (MINUS_EXPR, index_type, index, low_bound));
+
index = fold (build (MULT_EXPR, index_type, index,
convert (index_type,
TYPE_SIZE (TREE_TYPE (exp)))));