[Bug c/40312] Compiling with O2 flag lead to wrong binary code (X86 system 32bit)

2009-05-30 Thread tlin at a10networks dot com
--- 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

[Bug c/40312] New: Compilings with and with O2 flag lead to different execution results

2009-05-30 Thread tlin at a10networks dot com
} -- 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