https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78772
--- Comment #12 from ma.jiang at zte dot com.cn --- (In reply to Jim Wilson from comment #11) Hi Jim, Thank you for your patient explanations. > > If you have code with a lot of pointer casts, you should probably be > compiling with -fno-strict-aliasing and/or -Wstrict-aliasing. The handling > of these options was decided a while ago, and we won't be making any changes > here. OK, Now I understand the basic strategy of gcc for the strict-alias stuff(and other similar optimizations).