]> git.sesse.net Git - x264/commit
Use __attribute__((may_alias)) for type-punning
authorAlexander Strange <astrange@ithinksw.com>
Sun, 15 Nov 2009 06:13:28 +0000 (22:13 -0800)
committerFiona Glaser <fiona@x264.com>
Sun, 15 Nov 2009 21:15:07 +0000 (13:15 -0800)
commitddbac0c6f6b320eb8b1731c744d7803140b0a5a3
tree8fe3c311a8524a39757374fc4d4dd0edb476d374
parent69163c3b6d8fe0b85cddd4e47c6a4bdbf6c170f9
Use __attribute__((may_alias)) for type-punning
GCC thinks pointer casts to unions aren't valid with strict aliasing.
See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.html#Type_002dpunning.
Also use M32() in y4m.c.
Enable -Wstrict-aliasing again since all such warnings are fixed.
common/common.h
common/osdep.h
configure
input/y4m.c