From: Andi Kleen Date: Tue, 9 Aug 2016 02:48:44 +0000 (+0000) Subject: Fix warning breaking profiled bootstrap X-Git-Tag: basepoints/gcc-8~5181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b08e71f9e8afbdf264d159627760aa2bf8a8ca1a;p=thirdparty%2Fgcc.git 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 * tree-vrp.c (get_single_symbol): Always initialize inv and neg. From-SVN: r239266 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index dd264b31b005..5dbbb05823e8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-08-08 Andi Kleen + + * tree-vrp.c (get_single_symbol): Always initialize inv and neg. + 2016-08-08 David Malcolm PR c/64955 diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 44dfc84b2682..7f71f8a27485 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)