Re: Enabling LTO for target libraries (e.g., libgo, libstdc++)

2019-01-25 Thread Nikhil Benesch
some tweaks to work for all the build/host/target combination possibilities.) On Fri, Jan 25, 2019 at 12:18 PM Joseph Myers wrote: > > On Fri, 25 Jan 2019, Nikhil Benesch wrote: > > > I am attempting to convince GCC to build target libraries with link-time > > optimizations e

Enabling LTO for target libraries (e.g., libgo, libstdc++)

2019-01-24 Thread Nikhil Benesch
I am attempting to convince GCC to build target libraries with link-time optimizations enabled. I am primarily interested in libgo, but this discussion seems like it would be applicable to libstdc++, libgfortran, etc. The benchmarking I've done suggests that LTOing libgo yields a 5-20% speedup on v