Commit 9d85830f by Andrew Pinski Committed by Andrew Pinski

loop.c (loop_optimize): Free all loops_info's mems.

2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>

        * loop.c (loop_optimize): Free all loops_info's mems.

From-SVN: r75339
parent 2f89bbc1
2004-01-02 Andrew Pinski <pinskia@physics.uc.edu> 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
* loop.c (loop_optimize): Free all loops_info's mems.
* c-typeck.c (finish_init): Free spelling_base before * c-typeck.c (finish_init): Free spelling_base before
setting it again. setting it again.
......
/* Perform various loop optimizations, including strength reduction. /* Perform various loop optimizations, including strength reduction.
Copyright (C) 1987, 1988, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 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. This file is part of GCC.
...@@ -540,6 +540,9 @@ loop_optimize (rtx f, FILE *dumpfile, int flags) ...@@ -540,6 +540,9 @@ loop_optimize (rtx f, FILE *dumpfile, int flags)
end_alias_analysis (); end_alias_analysis ();
/* Clean up. */ /* Clean up. */
for (i = 0; i < (int) loops->num; i++)
free (loops_info[i].mems);
free (uid_luid); free (uid_luid);
free (uid_loop); free (uid_loop);
free (loops_info); free (loops_info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment