swscale: save ebx register when it is not available
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Fri, 16 Dec 2016 01:29:56 +0000 (02:29 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 26 Jan 2017 01:22:09 +0000 (02:22 +0100)
commit884cd3caa5cc111daaa4ff2ca05c99e05a713e47
tree32b44a906898cadc2de05038a702bfccf81fb1cd
parentcc662476031b168a398d48fa6c6fc4a5f08fe4fa
swscale: save ebx register when it is not available

Configure checks if the ebx register can be used for asm and it has to
be saved if and only if this is not the case.
Without this the build fails when configuring with --toolchain=hardened
--disable-pic on i386 using gcc 4.8:
error: PIC register clobbered by '%ebx' in 'asm'

In that case gcc 4.8 reserves the ebx register for the GOT needed for
PIE, so it can't be used in asm directly.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
(cherry picked from commit 319438e2f206036ee0cddf401dd50f3b2a3ae117)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libswscale/x86/hscale_fast_bilinear_simd.c