Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jul 2021 19:01:41 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   [Bug 257124] multimedia/ffmpeg: Fails to link: ld: error: inline assembly requires more registers than available at line [on i386 with LTO option]
Message-ID:  <bug-257124-12827-NciaXNHX8S@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257124-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257124-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257124

--- Comment #14 from Mikhail Teterin <mi@FreeBSD.org> ---
(In reply to Dimitry Andric from comment #13)
Thank you, Dimitry, this is quite educational -- and will help people bumpi=
ng
into this in the future.

Still:

> If functions get inlined, the number of available register slots can chan=
ge,
> since there are now also other variables in the blocks of code being comp=
iled.
> This can lead to a shortage of registers.

If the code still links without LTO, should not the linker, upon detecting =
such
problem, abandon the LTO-attempts for this file/function and move-on as if =
LTO
was not requested? With a warning, but not an error...

That's, what a compiler would do, when unachievable optimization is request=
ed,
is it too much to expect a graceful (rather than catastrophic) degradation =
from
a linker as well?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257124-12827-NciaXNHX8S>