------- Comment #13 from rguenther at suse dot de 2009-08-15 12:28 ------- Subject: Re: lto1: error: type mismatch in indirect reference
On Sat, 15 Aug 2009, jv244 at cam dot ac dot uk wrote: > > > ------- Comment #12 from jv244 at cam dot ac dot uk 2009-08-15 12:25 ------- > (In reply to comment #11) > > > You definitely want to add -fwhole-program for extra optimization and > > a less overall program size. > > there are still the two issues I reported in PR40011 with -fwhole-file.. hmm > actually -fwhole-program you say. I'll give it a try, but it is slow process, > -flto needs about 35min compile time and 10.5Gb RAM. Doh. How does that compare to the all-CP2K in one file builds? Sounds like you might want to try -fwhopr as well ... > Can I relink tobjects compiled without -fwhole-program with that option, or do > compile time and 'lto'-time options need to match? Yes, you can re-link with -fwhole-program, it is only relevant at link stage. > > Does CP2K also work? ;) > > I only tried two tests, but these seem fine. Nice. Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41069