Commit 8c316ae2 by Jeffrey A Law Committed by Jeff Law

global.c (global_alloc): Free the conflict matrix after reload has finished.

        * global.c (global_alloc): Free the conflict matrix after
        reload has finished.

From-SVN: r16249
parent 6874c264
Fri Oct 31 07:10:09 1997 Jeffrey A Law (law@cygnus.com)
* global.c (global_alloc): Free the conflict matrix after
reload has finished.
Fri Oct 31 01:45:31 1997 Jason Merrill <jason@yorick.cygnus.com> Fri Oct 31 01:45:31 1997 Jason Merrill <jason@yorick.cygnus.com>
* libgcc2.c (L_eh): Define __eh_pc. * libgcc2.c (L_eh): Define __eh_pc.
......
...@@ -277,6 +277,7 @@ int ...@@ -277,6 +277,7 @@ int
global_alloc (file) global_alloc (file)
FILE *file; FILE *file;
{ {
int retval;
#ifdef ELIMINABLE_REGS #ifdef ELIMINABLE_REGS
static struct {int from, to; } eliminables[] = ELIMINABLE_REGS; static struct {int from, to; } eliminables[] = ELIMINABLE_REGS;
#endif #endif
...@@ -573,8 +574,6 @@ global_alloc (file) ...@@ -573,8 +574,6 @@ global_alloc (file)
} }
} }
free (conflicts);
/* Do the reloads now while the allocno data still exist, so that we can /* Do the reloads now while the allocno data still exist, so that we can
try to assign new hard regs to any pseudo regs that are spilled. */ try to assign new hard regs to any pseudo regs that are spilled. */
...@@ -582,7 +581,10 @@ global_alloc (file) ...@@ -582,7 +581,10 @@ global_alloc (file)
for the sake of debugging information. */ for the sake of debugging information. */
if (n_basic_blocks > 0) if (n_basic_blocks > 0)
#endif #endif
return reload (get_insns (), 1, file); retval = reload (get_insns (), 1, file);
free (conflicts);
return retval;
} }
/* Sort predicate for ordering the allocnos. /* Sort predicate for ordering the allocnos.
......
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