mirror of https://git.ffmpeg.org/ffmpeg.git
x86inc: Avoid creating unnecessary local labels
The REP_RET workaround is only needed on old AMD cpus, and the labels clutter up the symbol table and confuse debugging/profiling tools, so use EQU to create SHN_ABS symbols instead of creating local labels. Furthermore, skip the workaround completely in functions that definitely won't run on such cpus. Note that EQU is just creating a local label when using nasm instead of yasm. This is probably a bug, but at least it doesn't break anything.
This commit is contained in:
parent
87b587d4fe
commit
d3662777e0
|
@ -648,8 +648,10 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14
|
||||||
%rep %0
|
%rep %0
|
||||||
%macro %1 1-2 %1
|
%macro %1 1-2 %1
|
||||||
%2 %1
|
%2 %1
|
||||||
%%branch_instr:
|
%if notcpuflag(ssse3)
|
||||||
%xdefine last_branch_adr %%branch_instr
|
%%branch_instr equ $
|
||||||
|
%xdefine last_branch_adr %%branch_instr
|
||||||
|
%endif
|
||||||
%endmacro
|
%endmacro
|
||||||
%rotate 1
|
%rotate 1
|
||||||
%endrep
|
%endrep
|
||||||
|
|
Loading…
Reference in New Issue