]> git.videolan.org Git - x264.git/commit
Fix all aliasing violations
authorJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 12 Nov 2009 13:25:32 +0000 (05:25 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Thu, 12 Nov 2009 20:34:39 +0000 (12:34 -0800)
commitcbd43d1e31fae533de121c7c0dfcc13ebf41aa24
tree0fd720c9c276e4d26b0971e35290c1ba0fda10fd
parentb28d98bbc3174e6f38caea49a7c545204e3930d3
Fix all aliasing violations
New type-punning macros perform write/read-combining without aliasing violations per the second-to-last part of 6.5.7 in the C99 specification.
GCC 4.4, however, doesn't seem to have read this part of the spec and still warns about the violations.
Regardless, it seems to fix all known aliasing miscompilations, so perhaps the GCC warning generator is just broken.
As such, add -Wno-strict-aliasing to CFLAGS.
14 files changed:
common/bs.h
common/common.h
common/dct.c
common/frame.c
common/macroblock.c
common/macroblock.h
common/predict.c
common/quant.c
common/x86/predict-c.c
common/x86/util.h
encoder/analyse.c
encoder/macroblock.c
encoder/me.c
encoder/slicetype.c