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

Chris Wilson chris at chris-wilson.co.uk
Fri Apr 24 01:11:26 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

Does this mean anything more specific (than just it not being able to
inline)?

>  Note: It could be a gcc bug, I am not sure, I don't know enough of
>        gcc internals to tell, that's why I post this patch as "RFC".

Since bilinear_weight() is trivial and bilinear_interpolation() is only
called from one location, I wonder what is up?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list