Use __attribute__((may_alias)) for type-punning
authorAlexander Strange <astrange@ithinksw.com>
Sun, 15 Nov 2009 06:13:28 +0000 (22:13 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Sun, 15 Nov 2009 21:15:07 +0000 (13:15 -0800)
commit1d54b2c7f9110cb7c7af1059cf595db17ed96273
treec8097c36eeb9c6e53d0ebdc51727657bfe8b15a6
parent82b80ef96b0ae74187f6f6a482bddb3f859df4f5
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