This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
fwhole-program, -combine, several C sources ?
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 21 Oct 2006 22:03:48 +0200
- Subject: fwhole-program, -combine, several C sources ?
Dear All,
For C source programs only, is there a scenario where several (eg two or
more) C source files (ie passed *.c arguments) can be passed with the
-fwhole-program flag and without the -combine flag?
In other words, some medium sized (eg < 100 KLOC of C source in several *.c
files) programs can be compiled with
gcc -O3 -fwhole-program -combine *.c -o prog ...libraries and includes....
but the compilation fails if the -combine flag is not given.
Maybe the driver might issue some warning if -fwhole-program is given
without -combine for several C source inputs?
Or probably, I am not very well understanding the -fwhole-program flag....
By the way, I am surprised that so few programs are compiled with it...
http://www.google.com/codesearch?q=fwhole-program give few results....
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net
aliases: basile<at>tunes<dot>org = bstarynk<at>nerim<dot>net
8, rue de la Faïencerie, 92340 Bourg La Reine, France