This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto] add direct-to-ELF serialization to lto1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]