From d33c284ed55e2963c7c940dfb80aa575a351fa88 Mon Sep 17 00:00:00 2001 From: pinskia Date: Fri, 2 Jan 2004 23:14:41 +0000 Subject: [PATCH] 2004-01-02 Andrew Pinski * loop.c (loop_optimize): Free all loops_info's mems. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75339 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 2 ++ gcc/loop.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80297cf..96b16ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2004-01-02 Andrew Pinski + * loop.c (loop_optimize): Free all loops_info's mems. + * c-typeck.c (finish_init): Free spelling_base before setting it again. diff --git a/gcc/loop.c b/gcc/loop.c index 4ee8344..0169dd0 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -1,6 +1,6 @@ /* Perform various loop optimizations, including strength reduction. Copyright (C) 1987, 1988, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, - 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. + 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GCC. @@ -540,6 +540,9 @@ loop_optimize (rtx f, FILE *dumpfile, int flags) end_alias_analysis (); /* Clean up. */ + for (i = 0; i < (int) loops->num; i++) + free (loops_info[i].mems); + free (uid_luid); free (uid_loop); free (loops_info); -- 2.7.4