diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-25 02:49:09 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-25 02:49:09 +0000 |
| commit | 0458bddc247748e87b79c37df282195b565ad985 (patch) | |
| tree | 623310f4b0da6372bfc04195c8bffa3d0bea24c8 | |
| parent | a17466fad17ef72e2ff9da9c87e1829b5018e320 (diff) | |
| download | ppe42-gcc-0458bddc247748e87b79c37df282195b565ad985.tar.gz ppe42-gcc-0458bddc247748e87b79c37df282195b565ad985.zip | |
* unroll.c (unroll_loop): Zero label_map.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51300 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 2 | ||||
| -rw-r--r-- | gcc/unroll.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ab39ffabdd..e0b396c24f4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2002-03-24 Richard Henderson <rth@redhat.com> + * unroll.c (unroll_loop): Zero label_map. + * gcse.c: Include except.h. * Makefile.in (gcse.o): Update. diff --git a/gcc/unroll.c b/gcc/unroll.c index cc3865641f1..1047ebfb8f5 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -721,8 +721,7 @@ unroll_loop (loop, insn_count, strength_reduce_p) if (max_labelno > 0) { - map->label_map = (rtx *) xmalloc (max_labelno * sizeof (rtx)); - + map->label_map = (rtx *) xcalloc (max_labelno, sizeof (rtx)); local_label = (char *) xcalloc (max_labelno, sizeof (char)); } |

