[Bug 257124] multimedia/ffmpeg: Fails to link: ld: error: inline assembly requires more registers than available at line [on i386 with LTO option]
Date: Tue, 13 Jul 2021 19:01:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257124 --- 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 bumping into this in the future. Still: > 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.