[Libva] Undefined behavior detected by gcc
Xiang, Haihao
haihao.xiang at intel.com
Sat Dec 13 05:25:17 PST 2014
Hi David,
The issue should be fixed by the commit below:
commit ddbb8fc9279233277497350846c7d57fe5a9b1de
Author: Xiang, Haihao <haihao.xiang at intel.com>
Date: Wed Nov 26 16:32:55 2014 +0800
Fix while loop
Thanks
Haihao
>-----Original Message-----
>From: Libva [mailto:libva-bounces at lists.freedesktop.org] On Behalf Of David
>Carlos Manuelda
>Sent: Saturday, December 13, 2014 1:22 AM
>To: libva at lists.freedesktop.org
>Subject: [Libva] Undefined behavior detected by gcc
>
>When compiling in gentoo libva, it triggered a warning about a possible
>undefined behavior in a loop. Maybe it is caused by the CXXFLAGS I am using,
>but anyway it is worth looking at.
>
>The warning I got was:
>
>* /var/tmp/portage/x11-
>libs/libva-1.4.1/work/libva-1.4.1/va/x11/va_dricommon.c:90:46: warning:
>iteration 31u invokes undefined behavior [-Waggressive-loop-optimizations]
>
>The CFLAGS I am using:
>
>GRAPHITE="-floop-interchange -ftree-loop-distribution -floop-strip-mine -
>floop-block -ftree-vectorize"
>CFLAGS="-march=native -O2 -pipe ${GRAPHITE}"
>
>Using gcc 4.9.2
>
>Thanks for looking into it.
>
>David.
More information about the Libva
mailing list