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: "stefan dot bruens at rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2008 20:56:18 -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 #6 from stefan dot bruens at rwth-aachen dot de 2008-08-09 20:56 -------
So is there any possibility to flag a variable to be expected to overflow and
"wrap around"? I think there is a lot of code in the wild assuming the loop to
run 100000 times and d_phase to overflow all the time, becoming negative.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37067