[Intel-gfx] [RFC PATCH] sna: Fix build with gcc 5.0

Chris Wilson chris at chris-wilson.co.uk
Fri Apr 24 01:39:59 PDT 2015


On Fri, Apr 24, 2015 at 09:43:37AM +0200, Olivier Fourdan wrote:
> gcc generates an error at build time because it fails to inline some
> functions:
> 
>   blt.c: In function 'affine_blt':
>   blt.c:980:1: error: inlining failed in call to always_inline
>   'bilinear_weight': optimization level attribute mismatch
>    bilinear_weight(pixman_fixed_t x)
> 
>   blt.c:1164:7: error: called from here
>       fy = bilinear_weight(y1);
>          ^
>   blt.c:980:1: error: inlining failed in call to always_inline
>   'bilinear_weight': optimization level attribute mismatch
>    bilinear_weight(pixman_fixed_t x)
> 
>   blt.c:1163:7: error: called from here
>       fx = bilinear_weight(x1);
>          ^
>   blt.c:989:1: error: inlining failed in call to always_inline
>   'bilinear_interpolation': optimization level attribute mismatch
>    bilinear_interpolation(uint32_t tl, uint32_t tr,
>    ^
>   blt.c:1207:11: error: called from here
>       b[i] = bilinear_interpolation(tl, tr, bl, br, fx, fy);
>            ^
> 
> Do not force inlining of these functions and let the compiler decide to
> avoid the compilation failure.
> 
> Signed-off-by: Olivier Fourdan <ofourdan at redhat.com>

Fixed up the other two force_inlines there and pushed,

commit 9b9643171359194478ab9f7126012b659d2ae7a1
Author: Olivier Fourdan <ofourdan at redhat.com>
Date:   Fri Apr 24 09:43:37 2015 +0200

    sna: Fix build with gcc 5.0

Thanks,
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list