tree-ssa-operands.c (get_stmt_operands, [...]): Handle ARRAY_RANGE_REF like ARRAY_REF.

* tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
	Handle ARRAY_RANGE_REF like ARRAY_REF.

From-SVN: r85148
This commit is contained in:
Richard Kenner 2004-07-25 14:43:51 +00:00 committed by Richard Kenner
parent a35461410a
commit a9315f6690
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
Handle ARRAY_RANGE_REF like ARRAY_REF.
2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
* c-typeck.c (digest_init): Don't allow arrays of signed or

View File

@ -757,7 +757,8 @@ get_stmt_operands (tree stmt)
case MODIFY_EXPR:
get_expr_operands (stmt, &TREE_OPERAND (stmt, 1), opf_none, &prev_vops);
if (TREE_CODE (TREE_OPERAND (stmt, 0)) == ARRAY_REF
|| TREE_CODE (TREE_OPERAND (stmt, 0)) == COMPONENT_REF
|| TREE_CODE (TREE_OPERAND (stmt, 0)) == ARRAY_RANGE_REF
|| TREE_CODE (TREE_OPERAND (stmt, 0)) == COMPONENT_REF
|| TREE_CODE (TREE_OPERAND (stmt, 0)) == REALPART_EXPR
|| TREE_CODE (TREE_OPERAND (stmt, 0)) == IMAGPART_EXPR
/* Use a V_MAY_DEF if the RHS might throw, as the LHS won't be
@ -952,7 +953,8 @@ get_expr_operands (tree stmt, tree *expr_p, int flags, voperands_t prev_vops)
op = TREE_OPERAND (expr, 0);
if (TREE_CODE (op) == WITH_SIZE_EXPR)
op = TREE_OPERAND (expr, 0);
if (TREE_CODE (op) == ARRAY_REF
if (TREE_CODE (op) == ARRAY_REF
|| TREE_CODE (op) == ARRAY_RANGE_REF
|| TREE_CODE (op) == COMPONENT_REF
|| TREE_CODE (op) == REALPART_EXPR
|| TREE_CODE (op) == IMAGPART_EXPR)