On 2019-07-10 19:22 +0100, Ken Moffat via blfs-dev wrote: > On Wed, Jul 10, 2019 at 01:08:30PM +0800, Xi Ruoyao via blfs-dev wrote: > > On 2019-07-09 23:11 +0100, Ken Moffat via blfs-dev wrote: > > > Also, I had hoped to examine LTO (and I might take a stab at the > > > first part of that - my previous attempt at recompiling gcc > > > was a disaster in its testsuite, but maybe that was because I had > > > not understood the problem of using -D_FORTIFY_SOURCE=2 on gcc at > > > that point). However, the big gains touted for LTO (smaller > > > programs) come at a compile time cost - for those of us who > > > frequently rebuild I'm not at all sure that the cost will be > > > worthwhile. > > > > I only build GCC with LTO using --with-build-config=bootstrap-lto. There > > are > > annoying problems with LTO and shared objects with ".symver" directive so I > > never use LTO for other packages. > > > > You may want to consult https://github.com/InBetweenNames/gentooLTO . > > Thanks, I've not seen that config option, nor references to the > problems with .symver. More things for me to read about.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48200 I've tried to write some code for it but my code is just like some pieces of sh*t. I'll stay and wait for Jan Hubicka to do this work. > The gentooLTO site was one of the places I started looking at before I > decided to try any of this, but at least I went into it with my eyes > wide open about never getting the time back. > > On the bright side (for me), by doing this I don't have time to test > Linus's kernels. Congratulations on your testing! Just encountered a bug in 5.2 release, which Linus also encountered :(. Now I'm trying to do a Python-3.7.4 build with LTO (its configure script now supports --with-lto to do a LTO build). -- Xi Ruoyao <[email protected]> School of Aerospace Science and Technology, Xidian University -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
