This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Remove lto_file and lto_elf_file from unnecessary GC management
- From: "Diego Novillo" <dnovillo at google dot com>
- To: "Bill Maddox" <maddox at google dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Aug 2008 06:57:14 -0400
- Subject: Re: [lto][patch] Remove lto_file and lto_elf_file from unnecessary GC management
- References: <8a0e66f0808192211o7a9f5578r96f1653e946e2517@mail.gmail.com>
On Wed, Aug 20, 2008 at 01:11, Bill Maddox <maddox@google.com> wrote:
> @@ -625,6 +625,8 @@ lto_elf_file_close (lto_file *file)
> }
>
> lto_file_close (file);
> +
> + free (file);
This should go in lto_file_close() or, better yet, we can just get rid
of lto_file_close() altogether. It's empty now.
Patch is OK with that change and a ChangeLog entry.
Diego.