--- 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;
&q
}
--
Summary: Compilings with and with O2 flag lead to different
execution results
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tlin at a10networks dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40312