diff mbox

[committed] Fix warning

Message ID 20150624140922.GC15263@msticlxl57.ims.intel.com
State New
Headers show

Commit Message

Ilya Enkovich June 24, 2015, 2:09 p.m. UTC
Hi,

I've committed this patch to fix a warning for mpx-bootstrap.

/export/users/aguskov/MPX/git_branch/source/gcc/tree.h:2858:51: error: 'vectype' may be used uninitialized in this function [-Werror=maybe-uninitialized]
     tree_check_failed (__t, __f, __l, __g, __c, 0);
                                                   ^
/export/users/aguskov/MPX/git_branch/source/gcc/tree-vect-slp.c:483:8: note: 'vectype' was declared here
   tree vectype, scalar_type, first_op1 = NULL_TREE;
        ^

Thanks,
Ilya
--
2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>

	* tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
diff mbox

Patch

diff --git a/gcc/tree-vect-slp.c b/gcc/tree-vect-slp.c
index 91ddc0f..bbc7d13 100644
--- a/gcc/tree-vect-slp.c
+++ b/gcc/tree-vect-slp.c
@@ -480,7 +480,7 @@  vect_build_slp_tree_1 (loop_vec_info loop_vinfo, bb_vec_info bb_vinfo,
   enum tree_code first_cond_code = ERROR_MARK;
   tree lhs;
   bool need_same_oprnds = false;
-  tree vectype, scalar_type, first_op1 = NULL_TREE;
+  tree vectype = NULL_TREE, scalar_type, first_op1 = NULL_TREE;
   optab optab;
   int icode;
   machine_mode optab_op2_mode;