Commit e0c6d139 by Jeffrey A Law Committed by Jeff Law

toplev.c (compile_file): Call allocate_reg_info to free register table memory.

        * toplev.c (compile_file): Call allocate_reg_info to free register
        table memory.
        * rtl.h (allocate_reg_info): Declare.

From-SVN: r23384
parent febc6f83
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
Wed Oct 28 00:10:35 1998 Jeffrey A Law (law@cygnus.com) Wed Oct 28 00:10:35 1998 Jeffrey A Law (law@cygnus.com)
* toplev.c (compile_file): Call allocate_reg_info to free register
table memory.
* rtl.h (allocate_reg_info): Declare.
* PROJECTS: Remove entry for local spilling. * PROJECTS: Remove entry for local spilling.
* final.c (cleanup_subreg_operands): New function. * final.c (cleanup_subreg_operands): New function.
......
...@@ -1009,6 +1009,9 @@ extern rtx find_use_as_address PROTO((rtx, rtx, HOST_WIDE_INT)); ...@@ -1009,6 +1009,9 @@ extern rtx find_use_as_address PROTO((rtx, rtx, HOST_WIDE_INT));
extern int max_parallel; extern int max_parallel;
/* Free up register info memory. */
extern void allocate_reg_info PROTO((size_t, int, int));
/* recog.c */ /* recog.c */
extern int asm_noperands PROTO((rtx)); extern int asm_noperands PROTO((rtx));
extern char *decode_asm_operands PROTO((rtx, rtx *, rtx **, char **, enum machine_mode *)); extern char *decode_asm_operands PROTO((rtx, rtx *, rtx **, char **, enum machine_mode *));
......
...@@ -3067,6 +3067,7 @@ compile_file (name) ...@@ -3067,6 +3067,7 @@ compile_file (name)
ASM_FILE_END (asm_out_file); ASM_FILE_END (asm_out_file);
#endif #endif
/* Language-specific end of compilation actions. */ /* Language-specific end of compilation actions. */
finish_syntax: finish_syntax:
lang_finish (); lang_finish ();
...@@ -3097,6 +3098,9 @@ compile_file (name) ...@@ -3097,6 +3098,9 @@ compile_file (name)
&& (ferror (asm_out_file) != 0 || fclose (asm_out_file) != 0)) && (ferror (asm_out_file) != 0 || fclose (asm_out_file) != 0))
fatal_io_error (asm_file_name); fatal_io_error (asm_file_name);
/* Free up memory for the benefit of leak detectors. */
allocate_reg_info (-1, 0, 0);
/* Print the times. */ /* Print the times. */
if (! quiet_flag) if (! quiet_flag)
......
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