[Libva] Undefined behavior detected by gcc
David Carlos Manuelda
stormbyte at gmail.com
Fri Dec 12 09:22:26 PST 2014
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/libva/attachments/20141212/20471df3/attachment.sig>
More information about the Libva
mailing list