[FFmpeg-devel] [RFC]Disable inline_asm_direct_symbol_refs for lto

Matt Oliver protogonoi at gmail.com
Wed Mar 19 03:31:21 CET 2014


On 19 March 2014 12:56, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Hi!
>
> Attached patch allows to use --enable-lto with inline asm
> if --disable-decoder=h264,hevc --disable-parser=h264 is used (needs gcc
> 4.8 /
> 4.8.2 and two small patches waiting for merge on github).
>
> Fixes a part of ticket #2941 and allows to continuously test Matt Oliver's
> patches on fate.
>
> Please comment, Carl Eugen
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
>
That seems rather interesting as having inline_asm_direct_symbol_refs
enabled results in exactly the same code as was always in ffmpeg (the
additional macros resolve to nothing when enabled). So disabling it means
that using lto would use the additional code added in the icl patch instead
of the way MANGLE was previously done. Since lto is a gcc instruction I
assume from looking at ticket #2941 that the changes to support icl also
help when using lto as mentioned. I have been only testing the changes for
use with icl so if this is the case then ill make sure any future changes
are tested against gcc -lto aswell.


More information about the ffmpeg-devel mailing list