Patchwork fix new warning

login
register
mail settings
Submitter Mike Stump
Date April 6, 2012, 11:01 p.m.
Message ID <1B08B230-CAA3-4D68-8879-FA6FEF5D9394@comcast.net>
Download mbox | patch
Permalink /patch/151280/
State New
Headers show

Comments

Mike Stump - April 6, 2012, 11:01 p.m.
This fixes a warning....  Applied as obvious.

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 186201)
+++ ChangeLog	(working copy)
@@ -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.
Index: gimple-fold.c
===================================================================
--- gimple-fold.c	(revision 186111)
+++ gimple-fold.c	(working copy)
@@ -2427,7 +2427,7 @@  gimple_fold_stmt_to_constant_1 (gimple s
 	      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,