0001-bfin-disable-optimization.patch 1.1 KB

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