summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-operands.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-10-05 15:42:34 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-10-05 15:42:34 -0700
commit9ec9d82b6d6a8b4349f80313f1d980124efe2e00 (patch)
tree892962aa62a03be66bf8b40b27ace1fefb61e56b /gcc/tree-ssa-operands.c
parent19361834df80840fa7cfb189d502118248904c88 (diff)
downloadgcc-9ec9d82b6d6a8b4349f80313f1d980124efe2e00.tar.gz
re PR middle-end/17756 (contained_3.f90)
PR 17756 * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL. From-SVN: r88579
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r--gcc/tree-ssa-operands.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 2506761d624..ac5f6075f74 100644
--- a/gcc/tree-ssa-operands.c
+++ b/gcc/tree-ssa-operands.c
@@ -1004,6 +1004,7 @@ get_expr_operands (tree stmt, tree *expr_p, int flags)
case VAR_DECL:
case PARM_DECL:
case RESULT_DECL:
+ case CONST_DECL:
/* If we found a variable, add it to DEFS or USES depending
on the operand flags. */
add_stmt_operand (expr_p, stmt, flags);