]> git.sesse.net Git - x264/commit
x86inc: Avoid creating unnecessary local labels
authorHenrik Gramner <henrik@gramner.com>
Fri, 16 Oct 2015 19:28:49 +0000 (21:28 +0200)
committerHenrik Gramner <henrik@gramner.com>
Sat, 16 Jan 2016 23:30:12 +0000 (00:30 +0100)
commit70c3ba42e610b4182edda4fdeb10b37a2a70eb8f
treed5f87bbde170ee6992903b8933239d5f3b276921
parent5c3d473a966e4b013759097fb98cd4a9cb5a34f5
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.

This patch doesn't modify any emitted instructions, and doesn't actually affect
x264 at all. It's only for other projects that use x86inc.asm without an
appropriate `strip` command in their buildsystem.

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.
common/x86/x86inc.asm