> > Recently I have tried to run Spec2000 fortran benchmarks > with -fwhole-program and -combine flags. It looks like > there was no effect of really combining files into > one program, i.e. they are processed separately at ipa level. > > I wonder what's the reason for this. > Pointing to relevant docs will work for me.
--combine has no effect to fortran, but in general concatenating all the sources to one big source with cat works just fine. Fortran however has problems with the multiple declaration rule making IPA quite ineffective :( (each time something is re-declared in source new declaration is produced and IPA thinks those are different objects) Honza > > Olga