This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto] add direct-to-ELF serialization to lto1
- From: "Ollie Wild" <aaw at google dot com>
- To: "Diego Novillo" <dnovillo at google dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "Kenneth Zadeck" <zadeck at naturalbridge dot com>, "=?big5?b?IkRvdWcgS3dhbiAow/autrx3KSI=?=" <dougkwan at google dot com>
- Date: Thu, 26 Jun 2008 10:48:12 -0700
- Subject: Re: [lto] add direct-to-ELF serialization to lto1
- References: <65dd6fd50806251156l647c5bb7vd5fe28e19d76d459@mail.gmail.com> <4863903B.2050409@google.com>
On Thu, Jun 26, 2008 at 5:48 AM, Diego Novillo <dnovillo@google.com> wrote:
>
> I don't understand this. Why not use langhooks instead of using another hook mechanism? It's the same thing, but it seems to me that it'd be more natural to just use the langhooks harness that we already have.
One reason is because we will likely end up with multiple
implementations for the various object file formats (think Apple).
Having a dynamic registration facility simplifies this. Otherwise,
the langhooks will end up being replaced by switch statements which
call the *real* langhooks.
Ollie