diff options
author | Jeff Law <law@redhat.com> | 2013-09-08 21:07:28 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2013-09-08 21:07:28 -0600 |
commit | 4f4b0b73e9c56aa71acd787c8eb40121fbfa80e6 (patch) | |
tree | 9de6c025b07b3b64c45272efcbe12c7de6629d7c /gcc/tree-ssa-threadedge.c | |
parent | 1db60b9ca827f9edceb2bd537c3d3220a3d5eb86 (diff) | |
download | gcc-4f4b0b73e9c56aa71acd787c8eb40121fbfa80e6.zip gcc-4f4b0b73e9c56aa71acd787c8eb40121fbfa80e6.tar.gz gcc-4f4b0b73e9c56aa71acd787c8eb40121fbfa80e6.tar.bz2 |
tree-ssa-threadedge.c (thread_across_edge): Fix initialization of 'found'.
* tree-ssa-threadedge.c (thread_across_edge): Fix initialization
of 'found'.
* gcc.c-torture/compile/pr58340.c: New test.
From-SVN: r202379
Diffstat (limited to 'gcc/tree-ssa-threadedge.c')
-rw-r--r-- | gcc/tree-ssa-threadedge.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-threadedge.c b/gcc/tree-ssa-threadedge.c index afdd0af..f2051d7 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, |