[systemd-devel] Is LTO worth it?

Michael Biebl mbiebl at gmail.com
Mon Jan 11 17:38:38 UTC 2021


Am Mo., 11. Jan. 2021 um 18:26 Uhr schrieb Reindl Harald
<h.reindl at thelounge.net>:
> Am 11.01.21 um 18:10 schrieb Michael Biebl:
> > Am Mo., 11. Jan. 2021 um 18:07 Uhr schrieb Reindl Harald
> > <h.reindl at thelounge.net>:
> >> it don't make sense using different flags in CI and production builds,
> >> especially LTO which often points out otherwise unvisible bugs
> >
> > Such as? I don't remember any bug report which was uncovered by LTO
> > being enabled
>
> buggy code not always leads to visble bugs with reports, the warnings
> typically increase with LTO

So I guess no definite bug reports then. Ok.

> and https://www.avrfreaks.net/forum/compiler-bug-lto-only shows why it's
> nonsense to run CI with different flags than final builds
>
> however the whole topic and "we've been using LTO in the Debian build
> for as long as I can remember, but I begin to question whether that is a
> good idea" in 2021 is very strange given that more or less the whole
> world goe sinto LTO for everything direction

Really?

Anyway, I appreciate your contribution regarding lto=<n>, but let's
leave it at that.


More information about the systemd-devel mailing list