From: Richard Guenther Date: Wed, 27 Apr 2005 15:25:21 +0000 (+0000) Subject: tree-ssa-propagate.c (set_rhs): Check operand of ADDR_EXPR for gimpliness, too. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81d4bb2f1774c06b66bd093f16dd545c74aaa924;p=gcc.git tree-ssa-propagate.c (set_rhs): Check operand of ADDR_EXPR for gimpliness, too. 2005-04-27 Richard Guenther * tree-ssa-propagate.c (set_rhs): Check operand of ADDR_EXPR for gimpliness, too. From-SVN: r98832 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a086b744556..69e29bd383d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-04-27 Richard Guenther + + * tree-ssa-propagate.c (set_rhs): Check operand of + ADDR_EXPR for gimpliness, too. + 2005-04-27 Kazu Hirata * tree-ssa-pre.c: Fix a comment typo. 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;