http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60747
tech <techsgin at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #6 from tech <techsgin at gmail dot com> --- We have already changed our code to use unsigned. We agree the the variable should be unsigned. What we don't agree on is the code should behave the same regardless to the optimization level. Take care thanks for your time. I have spent 3 days to find this, While converting a working code on AIX and Solaris to Linux. I still think it is a gcc bug, take care.