This is the mail archive of the gcc@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: ipa for fortran question


> 
> 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


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