diff options
author | Mike Stump <mikestump@comcast.net> | 2012-04-06 23:00:11 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2012-04-06 23:00:11 +0000 |
commit | d25c4172fbe909a4db287ebfe209039e9f2fb279 (patch) | |
tree | 28c6ed5d5652705c2a5bcc0b51b244c7bfa931b6 | |
parent | a0806f33add6bbdffd3e5ad72e3f444dbc26555a (diff) | |
download | gcc-d25c4172fbe909a4db287ebfe209039e9f2fb279.zip gcc-d25c4172fbe909a4db287ebfe209039e9f2fb279.tar.gz gcc-d25c4172fbe909a4db287ebfe209039e9f2fb279.tar.bz2 |
* gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
From-SVN: r186202
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/gimple-fold.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 19bd0f6..dd1d455 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 6ad81dd..0ea5d56 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -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, |