------- Comment #1 from tlin at a10networks dot com  2009-05-30 23:08 -------
The one compiled with O2 has wrong binary code.

The problem occurs when GCC compiles the following lines with O2 flag.

"
        if (pdw && memcmp(a1, a2, pdw << 2))
                return 0;
"

In the binary code, pdw is not shifted left by 2, which leads to wrong result.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40312

Reply via email to