------- Comment #15 from rguenther at suse dot de 2009-08-15 20:18 ------- Subject: Re: lto1: error: type mismatch in indirect reference
On Sat, 15 Aug 2009, jv244 at cam dot ac dot uk wrote: > ------- Comment #14 from jv244 at cam dot ac dot uk 2009-08-15 18:46 ------- > (In reply to comment #13) > > > -flto needs about 35min compile time and 10.5Gb RAM. > > > > Doh. How does that compare to the all-CP2K in one file builds? > > an all-in-one-file-CP2K takes about 2.5Gb and 30min last time I tested. So it > is mostly the memory increase that is really significant. Ok, that's interesting. I'm curious if compiling all-in-one CP2K with -flto is any different. > BTW, -fwhole-program seems to make the build more expensive. The following > (with consistently compiled objects) requires now 67min: > > gfortran -flto -fwhole-file -fwhole-program -O3 -ffast-math -funroll-loops > -march=native -ffree-form *.o [..] Yes, -fwhole-program opens up more optimization opportunities, especially around cloning which gets cheaper. Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41069