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] PATCH: fill in code to merge declarations


> 
> Mark Mitchell wrote:
> > Sandra Loosemore wrote:
> >
> >> I haven't figured out how to test this yet -- when I try to run more
> >> than one file through the driver with -x lto -c, it seems to want to
> >> compile them separately instead of merging them.  Do I need some
> >> other switch, or has this not been implemented yet?
> >
> > I will review the patch later today.  However, I think that "-combine"
> > should work, e.g.:
> >
> >   gcc -x lto -c -combine a.o b.o
> >
> > Thanks,
> >
> i do not see how -combine can work since it will try to gimplify text
> that has already been gimplified.

-combine just tells the driver, gcc, to invoke with all files of the same language
at the same time instead of calling the real compiler n number of times.

So if you have gcc -c -combine a.c b.c, gcc will invoke one cc1 with the files as agruments.
For the command line that Mark gives, it will invoke one lto1 with the files as arguments.

Thanks,
Andrew Pinski


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