OSDN Git Service

* decl.c (finish_function): Call free_after_parsing for functions
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Nov 1999 01:46:29 +0000 (01:46 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Nov 1999 01:46:29 +0000 (01:46 +0000)
we are not immediately turning into RTL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30302 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index 25dd23d..eb67839 100644 (file)
@@ -1,3 +1,8 @@
+1999-10-31  Mark Mitchell  <mark@codesourcery.com>
+
+       * decl.c (finish_function): Call free_after_parsing for functions
+       we are not immediately turning into RTL.
+
 1999-10-31  Brendan Kehoe  <brendan@cygnus.com>
 
        * cp-tree.h (flag_dump_translation_unit): Add decl.
index 0f9b5ab..14770e2 100644 (file)
@@ -13782,6 +13782,8 @@ finish_function (lineno, flags)
     }
   else
     {
+      /* Clear out memory we no longer need.  */
+      free_after_parsing (current_function);
       /* Since we never call rest_of_compilation, we never clear
         CURRENT_FUNCTION.  Do so explicitly.  */
       free_after_compilation (current_function);