From a9315f66908276a6430488a208777f8eae6c77e4 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 25 Jul 2004 14:43:51 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-operands.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c5df482fb73..bd5d443492f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-25 Richard Kenner + + * tree-ssa-operands.c (get_stmt_operands, get_expr_operands): + Handle ARRAY_RANGE_REF like ARRAY_REF. + 2004-07-25 Joseph S. Myers * c-typeck.c (digest_init): Don't allow arrays of signed or diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 7e7829e52e9..bd80da33341 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -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) -- 2.30.2