]> git.sesse.net Git - x264/commit
Fix all aliasing violations
authorFiona Glaser <fiona@x264.com>
Thu, 12 Nov 2009 13:25:32 +0000 (05:25 -0800)
committerFiona Glaser <fiona@x264.com>
Thu, 12 Nov 2009 20:34:39 +0000 (12:34 -0800)
commit03cb8c09553f24bf800cd47893e48b0aa91f9313
tree0bd112286f1cf38908fa60cf3dd2f30e8f53e608
parent241aacca01ee167ec632194ea0edbeffa44145df
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