From: Kazu Hirata Date: Fri, 3 Jun 2005 02:55:20 +0000 (+0000) Subject: re PR tree-optimization/21849 (wrong use of sbitmap in tree-ssa-copy.c) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50e5241d1f27fa5ce2919c3b9ef681bc3b2d24b3;p=gcc.git re PR tree-optimization/21849 (wrong use of sbitmap in tree-ssa-copy.c) PR tree-optimization/21849 * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero. From-SVN: r100531 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5dba8017a36..e4cce41fc3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-03 Kazu Hirata + + PR tree-optimization/21849 + * tree-ssa-copy.c (dump_copy_of): Call sbitmap_zero. + 2005-06-02 Richard Henderson * Makefile.in (tree-vect-generic.o): New. diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index 2f1072669fb..10b09898dbc 100644 --- a/gcc/tree-ssa-copy.c +++ b/gcc/tree-ssa-copy.c @@ -482,6 +482,7 @@ dump_copy_of (FILE *dump_file, tree var) return; visited = sbitmap_alloc (num_ssa_names); + sbitmap_zero (visited); SET_BIT (visited, SSA_NAME_VERSION (var)); fprintf (dump_file, " copy-of chain: ");