]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix warning breaking profiled bootstrap
authorAndi Kleen <ak@linux.intel.com>
Tue, 9 Aug 2016 02:48:44 +0000 (02:48 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Tue, 9 Aug 2016 02:48:44 +0000 (02:48 +0000)
This patch fixes an bootstrap error with autoprofiledbootstrap
due to uninitiliazed variables, because the compiler cannot
figure out they don't need to be initialized in an error path.
Just always initialize them.

gcc/:

2016-08-08  Andi Kleen  <ak@linux.intel.com>

* tree-vrp.c (get_single_symbol): Always initialize inv and neg.

From-SVN: r239266

gcc/ChangeLog
gcc/tree-vrp.c

index dd264b31b005ce60b6dc20c7800b22ec25684224..5dbbb05823e8b1e78cda49231c533df847871270 100644 (file)
@@ -1,3 +1,7 @@
+2016-08-08  Andi Kleen  <ak@linux.intel.com>
+
+       * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
+
 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
 
        PR c/64955
index 44dfc84b268278d9e61efed59681c6cbe5266edf..7f71f8a274851b7843c9ea892978f943cf9dd4c1 100644 (file)
@@ -893,6 +893,9 @@ get_single_symbol (tree t, bool *neg, tree *inv)
   bool neg_;
   tree inv_;
 
+  *inv = NULL_TREE;
+  *neg = false;
+
   if (TREE_CODE (t) == PLUS_EXPR
       || TREE_CODE (t) == POINTER_PLUS_EXPR
       || TREE_CODE (t) == MINUS_EXPR)