* gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.

From-SVN: r186202
This commit is contained in:
Mike Stump 2012-04-06 23:00:11 +00:00 committed by Mike Stump
parent a0806f33ad
commit d25c4172fb
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-04-06 Mike Stump <mikestump@comcast.net>
* gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
* config/sh/sh.c (hi_const): Remove.

View File

@ -2427,7 +2427,7 @@ gimple_fold_stmt_to_constant_1 (gimple stmt, tree (*valueize) (tree))
else if (TREE_CODE (rhs) == ADDR_EXPR
&& !is_gimple_min_invariant (rhs))
{
HOST_WIDE_INT offset;
HOST_WIDE_INT offset = 0;
tree base;
base = get_addr_base_and_unit_offset_1 (TREE_OPERAND (rhs, 0),
&offset,