diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-27 15:25:21 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-27 15:25:21 +0000 |
commit | 470ea237b5d52dcbe42eecf9d9da00806c7ebc76 (patch) | |
tree | 9fd8b189ecd7567f423469dee00d96b2539bcb70 /gcc/tree-ssa-propagate.c | |
parent | b451d311e41c04aea7c3a0a7fe98c9b4a33bf916 (diff) | |
download | gcc-470ea237b5d52dcbe42eecf9d9da00806c7ebc76.tar.gz |
2005-04-27 Richard Guenther <rguenth@gcc.gnu.org>
* tree-ssa-propagate.c (set_rhs): Check operand of
ADDR_EXPR for gimpliness, too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98832 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-propagate.c')
-rw-r--r-- | gcc/tree-ssa-propagate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-propagate.c b/gcc/tree-ssa-propagate.c index 69f41bab91d..35b845b0715 100644 --- a/gcc/tree-ssa-propagate.c +++ b/gcc/tree-ssa-propagate.c @@ -571,7 +571,8 @@ set_rhs (tree *stmt_p, tree expr) || !is_gimple_val (TREE_OPERAND (expr, 1))) return false; } - else if (TREE_CODE_CLASS (code) == tcc_unary) + else if (TREE_CODE_CLASS (code) == tcc_unary + || code == ADDR_EXPR) { if (!is_gimple_val (TREE_OPERAND (expr, 0))) return false; |