summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadedge.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-09 03:07:28 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-09 03:07:28 +0000
commit6da68a0a29ac5af0768d09e722cef76346bff966 (patch)
tree9de6c025b07b3b64c45272efcbe12c7de6629d7c /gcc/tree-ssa-threadedge.c
parent4c67130e5c4a98d51fbbeb936ebff5bc16bf0180 (diff)
downloadgcc-6da68a0a29ac5af0768d09e722cef76346bff966.tar.gz
* tree-ssa-threadedge.c (thread_across_edge): Fix initialization
of 'found'. * gcc.c-torture/compile/pr58340.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-threadedge.c')
-rw-r--r--gcc/tree-ssa-threadedge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-threadedge.c b/gcc/tree-ssa-threadedge.c
index afdd0afe6d6..f2051d7e7d0 100644
--- a/gcc/tree-ssa-threadedge.c
+++ b/gcc/tree-ssa-threadedge.c
@@ -978,7 +978,7 @@ thread_across_edge (gimple dummy_cond,
{
edge taken_edge;
edge_iterator ei;
- bool found = false;
+ bool found;
bitmap visited = BITMAP_ALLOC (NULL);
/* Look at each successor of E->dest to see if we can thread through it. */
@@ -994,6 +994,7 @@ thread_across_edge (gimple dummy_cond,
of E->dest. */
path.safe_push (e);
path.safe_push (taken_edge);
+ found = false;
if ((e->flags & EDGE_DFS_BACK) == 0
|| ! cond_arg_set_in_bb (path[path.length () - 1], e->dest))
found = thread_around_empty_blocks (taken_edge,