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

Reply via email to