re PR bootstrap/50218 (tree-ssa-loop-ivopts.c triggers -Werror=maybe-uninitialized...
authorMikael Pettersson <mikpe@it.uu.se>
Sun, 28 Aug 2011 12:08:41 +0000 (14:08 +0200)
committerTom de Vries <vries@gcc.gnu.org>
Sun, 28 Aug 2011 12:08:41 +0000 (12:08 +0000)
2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>

PR bootstrap/50218
* tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
comp.

From-SVN: r178141

gcc/ChangeLog
gcc/tree-ssa-loop-ivopts.c

index 69b05cc10986831556e5b11fd4cd85ee7ecdec36..56397af210431c3bd37a29ea9f54da47b54d193b 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-28  Mikael Pettersson  <mikpe@it.uu.se>
+
+       PR bootstrap/50218
+       * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Initialize
+       comp.
+
 2011-08-27  Bernd Schmidt  <bernds@codesourcery.com>
 
        * doc/rtl.texi (simple_return): Document.
index f170859fde4c3568025a1740cf9587883788d3a9..67d04647c8b2961483defcbb77ec40db9ae73036 100644 (file)
@@ -4757,7 +4757,7 @@ determine_use_iv_cost_condition (struct ivopts_data *data,
   bool ok;
   int elim_inv_expr_id = -1, express_inv_expr_id = -1, inv_expr_id;
   tree *control_var, *bound_cst;
-  enum tree_code comp;
+  enum tree_code comp = ERROR_MARK;
 
   /* Only consider real candidates.  */
   if (!cand->iv)