http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45375
--- Comment #59 from Jan Hubicka <hubicka at ucw dot cz> 2011-03-10 12:53:58 UTC --- > > How do you do this with "make -f client.mk profiledbuild"? > > To answer my own question: > Just edit ./configure and ./js/src/configure and add > "-flto=4 -fwhole-program" (or whatever you may prefer) > to the PROFILE_USE_CFLAGS variable. > Then you can build Firefox with "make -f client.mk profiledbuild". I did not know of existence of profiledbuild and thus I did that by hand where it was easy. Perhaps Mozilla build mahcinery can be told to add -fno-lto into -fprofile-generate run. Hmm, in fact perhaps GCC chould do that by default. Not sure if it is not too late for 4.6 however. > > BTW libmozsqlite3.so still gets miscompiled, but Firefox is > now snappy as never before ;-) yes, there is PR on this, but I have absolutely no idea if it is sqlite or GCC bug. Any help is greatly appreciated, sqlite is big blob of magic for me.