python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ffmpeg / 0001-bfin-disable-optimization.patch
blob1d8a4f015dcac80629396412251be6caaeb22fc0
1 Fix bfin compile error
3 See gcc bug report:
4 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311
6 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
8 diff -Nur ffmpeg-2.8.7.orig/libavcodec/hevcdsp_template.c ffmpeg-2.8.7/libavcodec/hevcdsp_template.c
9 --- ffmpeg-2.8.7.orig/libavcodec/hevcdsp_template.c 2016-03-29 04:25:16.000000000 +0200
10 +++ ffmpeg-2.8.7/libavcodec/hevcdsp_template.c 2016-08-12 21:32:36.728178969 +0200
11 @@ -1517,7 +1517,14 @@
12 #define TQ2 pix[2 * xstride + 3 * ystride]
13 #define TQ3 pix[3 * xstride + 3 * ystride]
15 -static void FUNC(hevc_loop_filter_luma)(uint8_t *_pix,
16 +// Blackfin gcc 6.1.x fails with
17 +// unable to find a register to spill in class CCREGS
18 +#if defined(__bfin__)
19 +#define disable_opt __attribute__ ((optimize("O1")))
20 +#else
21 +#define disable_opt
22 +#endif
23 +static void disable_opt FUNC(hevc_loop_filter_luma)(uint8_t *_pix,
24 ptrdiff_t _xstride, ptrdiff_t _ystride,
25 int beta, int *_tc,
26 uint8_t *_no_p, uint8_t *_no_q)