On Tue, Mar 29, 2016 at 10:27:20PM +0200, Jakub Wilk wrote: > * Steffen Möller <steffen_moel...@gmx.de>, 2016-03-29, 16:27: > >I admit to be a fan of link time optimisation and would like to see this > >challenge promoted towards more of a routine challenge to establish for > >our packages. > > gcc-5 manpage says: "Link-time optimization does not work well with > generation of debugging information. Combining -flto with -g is currently > experimental and expected to produce unexpected results." > > Um... Automatic debug packages or LTO, choose one?
I just built a C package with LTO, installed -dbgsym and debugging seems to work fine, just as well as any optimized code. I guess this warning is mostly obsolete as in gcc-4.5 debugging LTO was indeed broken. Or perhaps, there are some corner cases not yet fixed. -- A tit a day keeps the vet away.