http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546
--- Comment #17 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 17 Mar 2014, manjian2006 at gmail dot com wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60546 > > --- Comment #16 from linzj <manjian2006 at gmail dot com> --- > Yes,that may work.But what exactly go wrong in the original algorithm? I can't > change a correct algorithm just because it volatiles TBBA and make the > compiler > generate wrong code.Because it's CORRECT logically. You have to fix the memory reads from data[] to not read 'short's but to read 'char's.