This is the mail archive of the
mailing list for the GCC project.
Re: [lto] PATCH: fill in code to merge declarations
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: zadeck at naturalbridge dot com (Kenneth Zadeck)
- Cc: mark at codesourcery dot com (Mark Mitchell), sandra at codesourcery dot com (Sandra Loosemore), gcc-patches at gcc dot gnu dot org (GCC Patches)
- Date: Fri, 15 Sep 2006 19:28:39 -0400 (EDT)
- Subject: 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.