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>
Wed, 21 Dec 2016 00:26:10 +0000 (01:26 +0100)
commit319438e2f206036ee0cddf401dd50f3b2a3ae117
tree2f6df120a73d8d110413e77124dd628fce20116d
parente303e3d4b972975640da92cb55b766dad951d90d
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>
libswscale/x86/hscale_fast_bilinear_simd.c