[Bug 257124] multimedia/ffmpeg: Fails to link: ld: error: inline assembly requires more registers than available at line [on i386 with LTO option]

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 13 Jul 2021 19:01:41 +0000

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


> If functions get inlined, the number of available register slots can change,
> since there are now also other variables in the blocks of code being compiled.
> 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 requested,
is it too much to expect a graceful (rather than catastrophic) degradation from
a linker as well?

You are receiving this mail because:
You are the assignee for the bug.
Received on Tue Jul 13 2021 - 19:01:41 UTC

Original text of this message