aboutsummaryrefslogtreecommitdiff
path: root/gcc
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
parent19361834df80840fa7cfb189d502118248904c88 (diff)
downloadgcc-9ec9d82b6d6a8b4349f80313f1d980124efe2e00.zip
gcc-9ec9d82b6d6a8b4349f80313f1d980124efe2e00.tar.gz
gcc-9ec9d82b6d6a8b4349f80313f1d980124efe2e00.tar.bz2
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')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-operands.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 327be6c..1d7d8dc 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2004-10-05 Richard Henderson <rth@redhat.com>
+
+ PR 17756
+ * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
+
2004-10-05 Kelley Cook <kcook@gcc.gnu.org>
PR bootstrap/17817
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c
index 2506761..ac5f607 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);