From b6c8b728bbdb75f8a34eb19fc0ef636f04e917a6 Mon Sep 17 00:00:00 2001 From: law Date: Wed, 28 Oct 1998 00:06:22 +0000 Subject: [PATCH] * toplev.c (compile_file): Call allocate_reg_info to free register table memory. * rtl.h (allocate_reg_info): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23384 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/rtl.h | 3 +++ gcc/toplev.c | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a07b16a307e..6d32f11b2a7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -4,6 +4,10 @@ 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. * final.c (cleanup_subreg_operands): New function. diff --git a/gcc/rtl.h b/gcc/rtl.h index d655d4e593e..0d7ffb77a8e 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1009,6 +1009,9 @@ extern rtx find_use_as_address PROTO((rtx, rtx, HOST_WIDE_INT)); extern int max_parallel; +/* Free up register info memory. */ +extern void allocate_reg_info PROTO((size_t, int, int)); + /* recog.c */ extern int asm_noperands PROTO((rtx)); extern char *decode_asm_operands PROTO((rtx, rtx *, rtx **, char **, enum machine_mode *)); diff --git a/gcc/toplev.c b/gcc/toplev.c index 64ef43e4301..24b7c5ca9d1 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -3067,6 +3067,7 @@ compile_file (name) ASM_FILE_END (asm_out_file); #endif + /* Language-specific end of compilation actions. */ finish_syntax: lang_finish (); @@ -3097,6 +3098,9 @@ compile_file (name) && (ferror (asm_out_file) != 0 || fclose (asm_out_file) != 0)) fatal_io_error (asm_file_name); + /* Free up memory for the benefit of leak detectors. */ + allocate_reg_info (-1, 0, 0); + /* Print the times. */ if (! quiet_flag) -- 2.11.0