This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37067] gcc creating wrong code with -O2
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2008 20:46:32 -0000
- Subject: [Bug c/37067] gcc creating wrong code with -O2
- References: <bug-37067-15593@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2008-08-09 20:46 -------
>The loop should run 100000 times, as i does not overflow.
i does not overflow but d_phase does ...
2046 7ff00000
2047 80000000
That is an overflow.
So is:
4094 fff00000
4095 0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37067