diff options
author | Jan Hubicka <jh@suse.cz> | 2011-01-01 14:25:17 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-01-01 13:25:17 +0000 |
commit | 0e20c89fcfc2871bcb415cb2aaa4768804408be4 (patch) | |
tree | ee678f8b042a4bbb8180ebb30e271c41d5c2947a /gcc/tree-loop-distribution.c | |
parent | d7255276d4f7fc96e70d60a575b50cb92b4c908c (diff) | |
download | gcc-0e20c89fcfc2871bcb415cb2aaa4768804408be4.zip gcc-0e20c89fcfc2871bcb415cb2aaa4768804408be4.tar.gz gcc-0e20c89fcfc2871bcb415cb2aaa4768804408be4.tar.bz2 |
tree-loop-distribution.c (tree_loop_distribution): Do not use freed memory.
* tree-loop-distribution.c (tree_loop_distribution): Do not
use freed memory.
From-SVN: r168391
Diffstat (limited to 'gcc/tree-loop-distribution.c')
-rw-r--r-- | gcc/tree-loop-distribution.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 783c47c..5b147e3 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -1214,6 +1214,7 @@ tree_loop_distribution (void) FOR_EACH_LOOP (li, loop, 0) { VEC (gimple, heap) *work_list = NULL; + int num = loop->num; /* If the loop doesn't have a single exit we will fail anyway, so do that early. */ @@ -1255,9 +1256,9 @@ tree_loop_distribution (void) { if (nb_generated_loops > 1) fprintf (dump_file, "Loop %d distributed: split to %d loops.\n", - loop->num, nb_generated_loops); + num, nb_generated_loops); else - fprintf (dump_file, "Loop %d is the same.\n", loop->num); + fprintf (dump_file, "Loop %d is the same.\n", num); } verify_loop_structure (); |