[FFmpeg-trac] #7861(swscale:new): altivec compilation broken starting with gcc 8.3

FFmpeg trac at avcodec.org
Tue Apr 23 20:02:32 EEST 2019


#7861: altivec compilation broken starting with gcc 8.3
-------------------------------------+-------------------------------------
             Reporter:  q66          |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  swscale      |                  Version:  git-
             Keywords:  altivec,     |  master
  ppc64, power                       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Starting with gcc 8.3, it is not allowed to use typedefs with the altivec
 vector keyword when this keyword is builtin (e.g. `vector uint32_t`). It
 is necessary to either use the base type (like, `vector unsigned int`) or
 use the `__vector` gcc extension (like, `__vector uint32_t`).

 There's a bunch of recently-added code violating this, such as
 https://github.com/FFmpeg/FFmpeg/commit/8dd9df9ecd258cff84cef559f16e682949e78e38
 #diff-2177d684d44cafdce18adf016216b747

 This breaks build on powerpc; see gcc documentation for reference
 https://gcc.gnu.org/onlinedocs/gcc-8.3.0/gcc/PowerPC-AltiVec_002fVSX-
 Built-in-Functions.html

 Not sure if other components are affected.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7861>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list