diff options
author | Henrik Gramner <henrik@gramner.com> | 2016-01-18 02:21:50 +0300 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-01-23 22:44:25 +0300 |
commit | 002c47798da0c43a053822c8041144798d49ed84 (patch) | |
tree | 1c37928a611f921b4d696442aae84a851f80aa76 /libavutil/x86/x86inc.asm | |
parent | fd6ecac38eb382d1ed41c2ceafa052a3eb6593fc (diff) |
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.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavutil/x86/x86inc.asm')
-rw-r--r-- | libavutil/x86/x86inc.asm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavutil/x86/x86inc.asm b/libavutil/x86/x86inc.asm index ff51a2704b..8a74830a20 100644 --- a/libavutil/x86/x86inc.asm +++ b/libavutil/x86/x86inc.asm @@ -648,8 +648,10 @@ DECLARE_ARG 7, 8, 9, 10, 11, 12, 13, 14 %rep %0 %macro %1 1-2 %1 %2 %1 - %%branch_instr: - %xdefine last_branch_adr %%branch_instr + %if notcpuflag(ssse3) + %%branch_instr equ $ + %xdefine last_branch_adr %%branch_instr + %endif %endmacro %rotate 1 %endrep |