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

2009-05-31 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2009-05-31 12:25 --- It works for me with $ gcc-4.1 --version gcc-4.1 (GCC) 4.1.3 20080704 (prerelease) (Debian 4.1.2-25) and all other GCC versions I try. -- rguenth at gcc dot gnu dot org changed: What|Removed

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

2009-05-31 Thread mikpe at it dot uu dot se
--- Comment #2 from mikpe at it dot uu dot se 2009-05-31 08:10 --- (In reply to comment #1) > 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)) >

[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; " In the binary code, pd