summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-09 02:48:44 +0000
committerak <ak@138bc75d-0d04-0410-961f-82ee72b054a4>2016-08-09 02:48:44 +0000
commitcfe2036f601c25d51fde6324cae4b437daf2040e (patch)
treef33202aaad1258017f3dccf52e839487ca1bd703
parentd002933309de75719413232d6bef298dbd7e08e7 (diff)
downloadgcc-cfe2036f601c25d51fde6324cae4b437daf2040e.tar.gz
Fix warning breaking profiled bootstrap
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239266 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree-vrp.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dd264b31b00..5dbbb05823e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c
index 44dfc84b268..7f71f8a2748 100644
--- a/gcc/tree-vrp.c
+++ b/gcc/tree-vrp.c
@@ -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)