[FFmpeg-devel] [PATCH] configure: reenable tree vectorization for GCC

Michael Niedermayer michael at niedermayer.cc
Sat Jul 4 01:16:57 EEST 2020


On Fri, Jul 03, 2020 at 11:21:55PM +0200, Steinar H. Gunderson wrote:
> On Fri, Jul 03, 2020 at 10:42:04PM +0200, Michael Niedermayer wrote:
> > 230	                    v = av_be2ne16(((uint16_t *)s->bytestream)[j]);
> 
> Dereferencing an unaligned uint16_t* is UB, indeed. I've seen similar code
> break on ARM, with no -ftree-vectorize.

yes, just posted a patch to fix the obvious such cases from pnmdec
this also fixes this tree vectorize segfault

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200704/b4874ad3/attachment.sig>


More information about the ffmpeg-devel mailing list