This is the mail archive of the gcc@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][RFC] Do not emit hybrid object files


On Fri, Oct 17, 2008 at 15:09, Andrew Pinski <pinskia@gmail.com> wrote:

> Yes, so you can just link the files without any LTO at all.  That is
> you can have the object files act like real object files in the
> process of compiling.

You can do that with IL-only objects too, as long as you use gcc.  The
gimple emitted in the objects does not need to be compiled in lto
mode.

So if you have:

$ gcc -c -flto file1.c
$ gcc -c file2.c
$ gcc -o binary file1.o file2.o

You will get a regular binary not compiled in LTO mode.  The only
difference is that lto1 will be involved to finish the compilation of
file1.o.


Diego.


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